Skip to content

[3.12] gh-127902: Make sure extern "C" is closed when using Py_LIMITED_API #127904

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

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

mitya57
Copy link
Contributor

@mitya57 mitya57 commented Dec 13, 2024

This issue does not affect 3.13 or newer branches, so it is a direct fix in 3.12 branch, not a backport.

With this change, the extern "C" block is the inner-most like it is in Python 3.13, although the order of two #ifndefs is still different from 3.13 (but it does not matter).

Fixes #127902.

@vstinner vstinner enabled auto-merge (squash) December 13, 2024 11:13
@vstinner vstinner merged commit b184f48 into python:3.12 Dec 13, 2024
29 checks passed
@mitya57 mitya57 deleted the close-extern-c branch December 13, 2024 11:24
@vstinner
Copy link
Member

Merged, thank you!

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

Successfully merging this pull request may close these issues.

2 participants