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-104614: Make Sure ob_type is Always Set Correctly by PyType_Ready() (gh-105122)#105211

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

Conversation

miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedJun 1, 2023
edited by bedevere-bot
Loading

When I added the relevant condition to type_ready_set_bases() ingh-103912, I had missed that the function also sets tp_base and ob_type (if necessary). That led to problems for third-party static types.

We fix that here, by making those extra operations distinct and by adjusting the condition to be more specific.
(cherry picked from commit1469393)

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

…Ready() (pythongh-105122)When I added the relevant condition to type_ready_set_bases() inpythongh-103912, I had missed that the function also sets tp_base and ob_type (if necessary).  That led to problems for third-party static types.We fix that here, by making those extra operations distinct and by adjusting the condition to be more specific.(cherry picked from commit1469393)Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
@ericsnowcurrentlyericsnowcurrentlyenabled auto-merge (squash)June 1, 2023 22:36
@ericsnowcurrentlyericsnowcurrently removed the request for review frommarkshannonJune 1, 2023 22:36
@ericsnowcurrentlyericsnowcurrently merged commitd57ee81 intopython:3.12Jun 1, 2023
@miss-islingtonmiss-islington deleted the backport-1469393-3.12 branchJune 1, 2023 23:06
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
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@miss-islington@ericsnowcurrently@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp