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.12] gh-117482: Fix Builtin Types Slot Wrappers (gh-121602)#121632

Merged
ericsnowcurrently merged 2 commits intopython:3.12from
ericsnowcurrently:fix-builtin-slot-wrappers-3.12
Jul 11, 2024
Merged

[3.12] gh-117482: Fix Builtin Types Slot Wrappers (gh-121602)#121632
ericsnowcurrently merged 2 commits intopython:3.12from
ericsnowcurrently:fix-builtin-slot-wrappers-3.12

Conversation

@ericsnowcurrently
Copy link
Member

@ericsnowcurrentlyericsnowcurrently commentedJul 11, 2024
edited by bedevere-appbot
Loading

When builtin static types are initialized for a subinterpreter, various "tp" slots have already been inherited (for the main interpreter). This was interfering with the logic in add_operators() (in Objects/typeobject.c), causing a wrapper to get created when it shouldn't. This change fixes that by preserving the original data from the static type struct and checking that.

(cherry picked from commit5250a03)

Co-authored-by: Eric Snowericsnowcurrently@gmail.com

When builtin static types are initialized for a subinterpreter, various "tp" slots have already been inherited (for the main interpreter).  This was interfering with the logic in add_operators() (in Objects/typeobject.c), causing a wrapper to get created when it shouldn't.  This change fixes that by preserving the original data from the static type struct and checking that.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@ericsnowcurrently

Comments


[8]ページ先頭

©2009-2026 Movatter.jp