diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-30 14:53:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 14:53:20 (GMT) |
commit | f58c366a730ae3e68028dbf63aba7c4033eaec9b (patch) | |
tree | c9a04f4a24a9bea722e334243a544d7a76ac7ec8 /Python | |
parent | 48a739ec106dffabe89d67e79736c7dcf2f8f4a6 (diff) | |
download | cpython-f58c366a730ae3e68028dbf63aba7c4033eaec9b.zip cpython-f58c366a730ae3e68028dbf63aba7c4033eaec9b.tar.gz cpython-f58c366a730ae3e68028dbf63aba7c4033eaec9b.tar.bz2 |
GH-94329: Don't raise on excessive stack consumption (GH-94421) (GH-94446)
(cherry picked from commit b152bf448b321e3a4c0a7280e0b608840f5ac661)
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 70a754b..1bb0d96 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -8391,12 +8391,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; |