mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
[3.10] GH-94329: Don't raise on excessive stack consumption (GH-94421) (#94448)
This commit is contained in:
parent
30015de723
commit
b87d03d355
3 changed files with 8 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue