Skip to content

MAINT: Don't wrap #include <Python.h> with extern "C" #27991

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 12, 2024

Conversation

charris
Copy link
Member

@charris charris commented Dec 12, 2024

Backport of #27986.

This extern block was recently moved, which exposed a latent bug in CPython (python/cpython#127772), but it's probably not a good practice in general to wrap other code's headers with extern guards.

This extern block was recently moved, which exposed a latent bug in CPython
(python/cpython#127772), but it's probably not a
good practice in general to wrap other code's headers with extern
guards.
@charris charris added 03 - Maintenance 08 - Backport Used to tag backport PRs labels Dec 12, 2024
@charris charris added this to the 2.2.1 release milestone Dec 12, 2024
@charris charris merged commit 07fa6e8 into numpy:maintenance/2.2.x Dec 12, 2024
68 checks passed
@charris charris deleted the backport-27986 branch December 12, 2024 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
03 - Maintenance 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
  翻译: