gh-117482: Fix Builtin Types Slot Wrappers When Embedded by ericsnowcurrently · Pull Request #121636 · python/cpython · GitHub
Skip to content

gh-117482: Fix Builtin Types Slot Wrappers When Embedded - #121636

Closed
ericsnowcurrently wants to merge 10 commits into
python:mainfrom
ericsnowcurrently:fix-builtin-slot-wrappers-embedded
Closed

ericsnowcurrently wants to merge 10 commits into
python:mainfrom
ericsnowcurrently:fix-builtin-slot-wrappers-embedded

Conversation

@ericsnowcurrently

@ericsnowcurrently ericsnowcurrently commented Jul 11, 2024

Copy link
Copy Markdown
Member

While gh-121602 solved most of the problem, it did not resolve the case where the runtime gets re-initialized. In that case, we end up in the same situation as before, where the inherited "tp" slots are set, which makes add_operators() do the wrong thing. We fix that by resetting the static type to the preserved values during finalization. We also make sure the type substructs are preserved.

(Given that this fix is for a more unlikely case, I'm inclined to not backport this to 3.12.)

@AraHaan

AraHaan commented Jul 12, 2024

Copy link
Copy Markdown
Contributor

@ericsnowcurrently

Copy link
Copy Markdown
Member Author

Yep. It's on my TODO list. 😄

@ericsnowcurrently ericsnowcurrently added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jul 15, 2024
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit 8520cfc 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@freakboy3742

Copy link
Copy Markdown
Contributor

!buildbot iOS

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 8520cfc 🤖

The command will test the builders whose names match following regular expression: iOS

The builders matched are:

  • iOS ARM64 Simulator PR

@ericsnowcurrently
ericsnowcurrently marked this pull request as draft August 12, 2024 22:44
@ericsnowcurrently

Copy link
Copy Markdown
Member Author

@ericsnowcurrently
ericsnowcurrently deleted the fix-builtin-slot-wrappers-embedded branch August 13, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants