-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-131238: Add explicit include to pycore headers #131257
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
Conversation
#include "pycore_modsupport.h" // _PyArg_NoPositional() | ||
#include "pycore_pystate.h" // _PyInterpreterState_GET() | ||
#include "pycore_runtime.h" // _Py_ID() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_Py_ID
is defined in pycore_global_strings.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see your comment on the issue... it needs access to _PyRuntime
's internals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, in practice, pycore_runtime.h should be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving as a general concept without trying to understand each one of these directly under the assumption you know what you're doing to try and move towards a less tangled circular mess and anything actually wrong here would fail to build.
PR rewritten on top of commit a1aeec6:
|
I wrote this PR to prepare #131356. |
Uh oh!
There was an error while loading. Please reload this page.