◐ Shell
clean mode source ↗

[3.8] bpo-37947: Avoid double-decrement in symtable recursion counting (GH-15593) by miss-islington · Pull Request #15594 · python/cpython

With symtable_visit_expr now correctly adjusting the recursion depth for named
expressions, symtable_handle_namedexpr should be leaving it alone.

Also adds a new check to PySymtable_BuildObject that raises SystemError
if a successful first symbol analysis pass fails to keep the stack depth
accounting clean.
(cherry picked from commit 0614523)

Co-authored-by: Nick Coghlan ncoghlan@gmail.com

https://bugs.python.org/issue37947

Automerge-Triggered-By: @ncoghlan