Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.9] bpo-44050: Extension modules can share state when they don't support sub-interpreters. (GH-27794)#28741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ambv merged 2 commits intopython:3.9fromambv:backport-b9bb748-3.9
Oct 5, 2021

Conversation

ambv
Copy link
Contributor

@ambvambv commentedOct 5, 2021
edited
Loading

(cherry picked from commitb9bb748)

Co-authored-by: Hai Shishihai1992@gmail.com

Note: this is a little different from 3.10 and 3.11 because in 3.10+_Py_IsMainInterpreter takesPyInterpreterState instead of the entirePyThreadState as an argument (seeGH-24577 for that).

Also, the new test usesPyModule_AddObjectRef which was only added in Python 3.10 (seeGH-23122). I replaced this usage with the oldPyModule_AddObject with additional increfs and decrefs per whatBPO-42327 prescribes.

https://bugs.python.org/issue44050

…pport sub-interpreters. (pythonGH-27794)Automerge-Triggered-By: GH:encukou.(cherry picked from commitb9bb748)Co-authored-by: Hai Shi <shihai1992@gmail.com>
@ambvambv merged commit52d9d3b intopython:3.9Oct 5, 2021
@ambvambv deleted the backport-b9bb748-3.9 branchOctober 5, 2021 20:41
@encukou
Copy link
Member

Thanks for taking this, Łukasz!
(I would only get to it now ☺)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@brettcannonbrettcannonAwaiting requested review from brettcannonbrettcannon is a code owner

@encukouencukouAwaiting requested review from encukouencukou is a code owner

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@ncoghlanncoghlanAwaiting requested review from ncoghlanncoghlan is a code owner

@warsawwarsawAwaiting requested review from warsawwarsaw is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@ambv@encukou@the-knights-who-say-ni@bedevere-bot@shihai1991

[8]ページ先頭

©2009-2025 Movatter.jp