diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-08-29 13:46:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-29 13:46:20 (GMT) |
commit | 384c6d72d9a12764282ccc2d3935232a34a7cfbe (patch) | |
tree | 3f1aed8621f2bb32ca3d0fe427eeae00ffb8bd7c /Python/context.c | |
parent | c71ae1a45bd6e6d0f5aebc470b35f5a7dc0d8078 (diff) | |
download | cpython-384c6d72d9a12764282ccc2d3935232a34a7cfbe.zip cpython-384c6d72d9a12764282ccc2d3935232a34a7cfbe.tar.gz cpython-384c6d72d9a12764282ccc2d3935232a34a7cfbe.tar.bz2 |
bpo-37947: Avoid double-decrement in symtable recursion counting (GH-15593)
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 06145230c833c3db5dab8858e11bcd550a37c57f)
Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
Diffstat (limited to 'Python/context.c')
0 files changed, 0 insertions, 0 deletions