| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Backport to 3.15 and 3.14.
|
Thanks @jelle-openai for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
Sorry, something went wrong.
|
GH-160249 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
GH-160250 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Do not intern complex subclasses in code constants. On free-threaded builds, the code-constant interning check accepts complex subclasses instead of only exact complex objects. An instance supplied through code.replace(co_consts=...) can therefore run a user-defined __hash__ during code-object creation and become immortal, unexpectedly retaining the instance and anything it references.
Backport to 3.15 and 3.14.