Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_config: get the last PyConfig member #135

Merged
merged 1 commit into from
Jan 26, 2025

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