[3.14] gh-135450: Remove assertion in `_PyCode_CheckNoExternalState` … · python/cpython@c03f94e · GitHub
Skip to content

Commit c03f94e

Browse files
[3.14] gh-135450: Remove assertion in _PyCode_CheckNoExternalState (gh-135694)
The assertion reflected a misunderstanding of situations where "hidden" variables might exist, namely generator expressions and comprehensions. (cherry picked from commit 15f2bac, AKA gh-135466) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent 47ee2ae commit c03f94e

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

Lib/test/test_interpreters/test_api.py

Lines changed: 16 additions & 0 deletions

Objects/codeobject.c

Lines changed: 0 additions & 1 deletion

0 commit comments

Comments
 (0)