From f58c366a730ae3e68028dbf63aba7c4033eaec9b Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Thu, 30 Jun 2022 07:53:20 -0700 Subject: GH-94329: Don't raise on excessive stack consumption (GH-94421) (GH-94446) (cherry picked from commit b152bf448b321e3a4c0a7280e0b608840f5ac661) --- Python/compile.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index 70a754b16d8..1bb0d96207d 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; -- cgit v1.3.1