Skip to content

[3.11] gh-90763: Modernise xx template module initialisation (GH-93078)#93681

Merged
erlend-aasland merged 1 commit intopython:3.11from
erlend-aasland:backport-a87c9b5-3.11
Jun 10, 2022
Merged

[3.11] gh-90763: Modernise xx template module initialisation (GH-93078)#93681
erlend-aasland merged 1 commit intopython:3.11from
erlend-aasland:backport-a87c9b5-3.11

Conversation

@erlend-aasland
Copy link
Contributor

Use C APIs such as PyModule_AddType instead of PyModule_AddObject.
Also remove incorrect module decrefs if module fails to initialise.

(cherry picked from commit a87c9b5)

Co-authored-by: Erlend Egeberg Aasland erlend.aasland@protonmail.com

…ythonGH-93078)

Use C APIs such as PyModule_AddType instead of PyModule_AddObject.
Also remove incorrect module decrefs if module fails to initialise.
(cherry picked from commit a87c9b5)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
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.

2 participants