← 返回首页
[3.11] gh-90763: Modernise xx template module initialisation (GH-93078) by erlend-aasland · Pull Request #93681 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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

Merged
erlend-aasland merged 1 commit into
python: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 into
python:3.11from
erlend-aasland:backport-a87c9b5-3.11

Conversation

Copy link
Copy Markdown
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.