summaryrefslogtreecommitdiffstats
path: root/Parser/asdl_c.py
diff options
context:
space:
mode:
authorMarkus Mohrhard <markusm@dug.com>2023-11-13 13:05:17 (GMT)
committerGitHub <noreply@github.com>2023-11-13 13:05:17 (GMT)
commit1447af797048e62049d00bbd96d8daee3929f527 (patch)
tree4141ed005236a8e6199e2dd2c3edefc91cbc1352 /Parser/asdl_c.py
parent1c7ed7e9ebc53290c831d7b610219fa737153a1b (diff)
downloadcpython-1447af797048e62049d00bbd96d8daee3929f527.zip
cpython-1447af797048e62049d00bbd96d8daee3929f527.tar.gz
cpython-1447af797048e62049d00bbd96d8daee3929f527.tar.bz2
gh-106905: avoid incorrect SystemError about recursion depth mismatch (#106906)
* gh-106905: avoid incorrect SystemError about recursion depth mismatch * Update Misc/NEWS.d/next/Core and Builtins/2023-07-20-11-41-16.gh-issue-106905.AyZpuB.rst --------- Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Parser/asdl_c.py')
-rwxr-xr-xParser/asdl_c.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index f61099b..ae642e8 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -1286,6 +1286,7 @@ class ObjVisitor(PickleVisitor):
self.emit("state->recursion_depth--;", 1)
self.emit("return result;", 1)
self.emit("failed:", 0)
+ self.emit("state->recursion_depth--;", 1)
self.emit("Py_XDECREF(value);", 1)
self.emit("Py_XDECREF(result);", 1)
self.emit("return NULL;", 1)