Repository navigation
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
de5b05d to
afabe1f
Compare
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
A regression test could distinguish failure before frame initialization from argument-binding failure after delegation. I ran this matrix on CPython 3.12.16/Linux (not a build of this PR): using At afabe1f, the invalid-key case reaches the local AI-assisted analysis; the local matrix above was executed and the stated source paths were inspected. |
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
|
And if possible, add a test. |
|
And I think you also need to update the comment as it says that locals references are not stolen. |
gh-163172: _PyEvalFramePushAndInit_Ex leaks locals on failure if not using fast locals
Bug report
CALL_FUNCTION_EX passes a new reference to a function globals as locals when not using fast locals. Each failing call will leak a reference, e.g. should _PyStack_UnpackDict() fails because **kwargs is not a string.
Reproduce with:
CPython versions tested on: 3.16, CPython main branch
Operating systems tested on: macOS