]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135450: Remove assertion in `_PyCode_CheckNoExternalState` (gh-135466)
authorPeter Bierma <zintensitydev@gmail.com>
Wed, 18 Jun 2025 23:31:23 +0000 (19:31 -0400)
committerGitHub <noreply@github.com>
Wed, 18 Jun 2025 23:31:23 +0000 (17:31 -0600)
commit15f2bac02c5e106f04a93ce73fd93cc305253405
treeefc0164891f2e8f8b8ca594e28c31695fe9bf0ba
parente9b647dd30d22cef465972d898a34c4b1bb6615d
gh-135450: Remove assertion in `_PyCode_CheckNoExternalState` (gh-135466)

The assertion reflected a misunderstanding of situations where "hidden" variables might exist,
namely generator expressions and comprehensions.
Lib/test/test_interpreters/test_api.py
Objects/codeobject.c