There was an error while loading. Please reload this page.
A variety of pages show examples (or provide explanations) around single-phase init modules and static types, but should focus on the newer, recommended alternatives. For example:
For reference:
A variety of pages show examples (or provide explanations) around single-phase init modules and static types, but should focus on the newer, recommended alternatives. For example:
https://github.com/python/cpython/blob/main/Doc/extending/extending.rst?plain=1#L206-L265
https://github.com/python/cpython/blob/main/Doc/extending/extending.rst?plain=1#L355-L379
https://github.com/python/cpython/blob/main/Doc/extending/newtypes_tutorial.rst
https://github.com/python/cpython/blob/main/Doc/extending/newtypes.rst
https://github.com/python/cpython/blob/main/Doc/extending/embedding.rst?plain=1#L225
For reference:
Linked PRs