diff options
author | Mark Shannon <mark@hotpy.org> | 2022-06-30 14:27:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 14:27:14 (GMT) |
commit | b152bf448b321e3a4c0a7280e0b608840f5ac661 (patch) | |
tree | d38cab550cb334b31db7e2bb1860bff62e5e223c /Python | |
parent | 9ef50c1d46dc2a52d83dcc7d0c4f5271344d2f66 (diff) | |
download | cpython-b152bf448b321e3a4c0a7280e0b608840f5ac661.zip cpython-b152bf448b321e3a4c0a7280e0b608840f5ac661.tar.gz cpython-b152bf448b321e3a4c0a7280e0b608840f5ac661.tar.bz2 |
GH-94329: Don't raise on excessive stack consumption (GH-94421)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Python/compile.c b/Python/compile.c index 59f8896..2d3b571 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -8652,12 +8652,7 @@ assemble(struct compiler *c, int addNone) if (maxdepth < 0) { goto error; } - if (maxdepth > MAX_ALLOWED_STACK_USE) { - PyErr_Format(PyExc_SystemError, - "excessive stack use: stack is %d deep", - maxdepth); - goto error; - } + /* TO DO -- For 3.12, make sure that `maxdepth <= MAX_ALLOWED_STACK_USE` */ if (label_exception_targets(entryblock)) { goto error; |