You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crash on compilation of invalid AST involving walrus #109351
% ./python.exe namedexpr.py
Assertion failed: (e->kind == Name_kind), function symtable_extend_namedexpr_scope, file symtable.c, line 1877.
zsh: abort ./python.exe namedexpr.py
This is on a debug build; on a release build presumably it will segfault or trigger UB somewhere.
I'll have a fix soon.
On 3.11 the reproducer instead fails with TypeError: '<' not supported between instances of 'int' and 'str' for me. Not sure what's up with that; the code that should trigger the crash is the same on 3.11 and main.
Activity
pythongh-109351: Fix crash when compiling AST with invalid NamedExpr
gh-109351: Fix crash when compiling AST with invalid NamedExpr (#109352)
pythongh-109351: Fix crash when compiling AST with invalid NamedExpr (p…
pythongh-109351: Fix crash when compiling AST with invalid NamedExpr (p…
[3.11] gh-109351: Fix crash when compiling AST with invalid NamedExpr (…
[3.12] gh-109351: Fix crash when compiling AST with invalid NamedExpr (…