summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-07-11 12:21:17 (GMT)
committerGitHub <noreply@github.com>2022-07-11 12:21:17 (GMT)
commitb87d03d355a1b303a1e0550b0da0fdeb99674da5 (patch)
tree37bc5a375548656bb4044ca8b9299ef08c7f5636 /Python/compile.c
parent30015de7235e5b4033298b85a164fcd8d96046b3 (diff)
downloadcpython-b87d03d355a1b303a1e0550b0da0fdeb99674da5.zip
cpython-b87d03d355a1b303a1e0550b0da0fdeb99674da5.tar.gz
cpython-b87d03d355a1b303a1e0550b0da0fdeb99674da5.tar.bz2
[3.10] GH-94329: Don't raise on excessive stack consumption (GH-94421) (#94448)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Python/compile.c b/Python/compile.c
index ea2fdfd..40d1761 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -6968,13 +6968,6 @@ makecode(struct compiler *c, struct assembler *a, PyObject *consts)
Py_DECREF(consts);
goto error;
}
- if (maxdepth > MAX_ALLOWED_STACK_USE) {
- PyErr_Format(PyExc_SystemError,
- "excessive stack use: stack is %d deep",
- maxdepth);
- Py_DECREF(consts);
- goto error;
- }
co = PyCode_NewWithPosOnlyArgs(posonlyargcount+posorkeywordargcount,
posonlyargcount, kwonlyargcount, nlocals_int,
maxdepth, flags, a->a_bytecode, consts, names,