Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-39487: Merge duplicated _Py_IDENTIFIER identifiers in C code #18254
Conversation
@@ -1568,7 +1570,6 @@ resolve_name(PyThreadState *tstate, PyObject *name, PyObject *globals, int level | |||
{ | |||
_Py_IDENTIFIER(__spec__); |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Jan 29, 2020
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
This comment has been minimized.
This comment has been minimized.
We can't make this change, as it means the statics get initialised before the Python interpreter has been initialised, and won't be reinitialised if the interpreter is destroyed and recreated. |
This comment has been minimized.
This comment has been minimized.
My apologies, my comment above was based on an outdated understanding of how the identifier structs get initialised (it's the usage that initialises them, not the declaration). That means this is a useful refactoring to help identify blockers to full subinterpreter support. |
shihai1991 commentedJan 29, 2020
•
edited by bedevere-bot
https://bugs.python.org/issue39487