Skip to content

test_config: get the last PyConfig member#135

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:test_pyconfig
Jan 26, 2025
Merged

test_config: get the last PyConfig member#135
vstinner merged 1 commit intopython:mainfrom
vstinner:test_pyconfig

Conversation

@vstinner
Copy link
Member

No description provided.

@vstinner vstinner merged commit 81eefa7 into python:main Jan 26, 2025
33 checks passed
@vstinner
Copy link
Member Author

I added a test on sizeof(config_spec) / sizeof(config_spec[0]) of PyConfig_Get(). It seems to work on all platforms and all Python versions.

@vstinner vstinner deleted the test_pyconfig branch January 26, 2025 12:17
@vstinner
Copy link
Member Author

If tomorrow, the sizeof() code doesn't work, we should use a terminator member (all set to zero) as done in Python main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant