Skip to content

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

Merged
ericsnowcurrently merged 28 commits into
python:mainfrom
ericsnowcurrently:global-objects-cleanup
Dec 9, 2021
Merged

bpo-46008: Make runtime-global object/type lifecycle functions and state consistent.#29998
ericsnowcurrently merged 28 commits into
python:mainfrom
ericsnowcurrently:global-objects-cleanup

Conversation

@ericsnowcurrently

@ericsnowcurrently ericsnowcurrently commented Dec 9, 2021

Copy link
Copy Markdown
Member

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