◐ Shell
reader mode source ↗
Skip to content

bpo-43770: Refactor PyType_Ready() function#25336

Merged
vstinner merged 2 commits into
python:masterfrom
vstinner:type_ready
Apr 11, 2021
Merged

bpo-43770: Refactor PyType_Ready() function#25336
vstinner merged 2 commits into
python:masterfrom
vstinner:type_ready

Conversation

@vstinner

@vstinner vstinner commented Apr 10, 2021

Copy link
Copy Markdown
Member
  • Split PyType_Ready() into sub-functions.
  • type_ready_mro() now checks if bases are static types earlier.
  • Check tp_name earlier, in type_ready_checks().
  • Add _PyType_IsReady() macro to check if a type is ready.

https://bugs.python.org/issue43770

* Split PyType_Ready() into sub-functions.
* type_ready_mro() now checks if bases are static types earlier.
* Check tp_name earlier, in type_ready_checks().
* Add _PyType_IsReady() macro to check if a type is ready.
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
@vstinner vstinner merged commit 53114ff into python:master Apr 11, 2021
@bedevere-bot bedevere-bot removed the label Apr 11, 2021
@vstinner vstinner deleted the type_ready branch April 11, 2021 21:57
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.

4 participants