SIGN IN SIGN UP

[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 15f2bac02c5e, AKA gh-135466)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
M
Miss Islington (bot) committed
c03f94e7fe2fe96827ed96ce78aed0fc88fb8358
Parent: 47ee2ae
Committed by GitHub <noreply@github.com> on 6/18/2025, 11:57:18 PM