Skip to content

bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. #29998

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

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Dec 9, 2021

This change helps in the following ways:

  • ensures type-related init functions focus strictly on one of the three aspects (state, objects, types)
  • passes in PyInterprterState * to all those functions, simplifying work on moving types/objects/state to the interpreter
  • consistent naming conventions help make what's going on more clear
  • keeping API related to a type in the corresponding header file makes it more obvious where to look for it

Note that this PR is strictly renames and moving code around.

https://bugs.python.org/issue46008

@ericsnowcurrently ericsnowcurrently merged commit c8749b5 into python:main Dec 9, 2021
@ericsnowcurrently ericsnowcurrently deleted the global-objects-cleanup branch December 9, 2021 19:59
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.

3 participants