mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Set the max recursion limit to 5000 -- rather conservative (this uses
0.5 MB of the 1 MB available by default for stack on Win32 platforms).
This commit is contained in:
parent
c03158bfc7
commit
c87f5f4f7a
1 changed files with 7 additions and 0 deletions
|
|
@ -229,6 +229,13 @@ typedef int pid_t;
|
|||
#define SIZEOF_VOID_P 4
|
||||
#endif
|
||||
|
||||
/* Smaller stack size limit. (9500 would work too, but we're conservative.) */
|
||||
|
||||
#ifndef MAX_RECURSION_DEPTH
|
||||
#define MAX_RECURSION_DEPTH 5000
|
||||
#endif
|
||||
|
||||
|
||||
/* EXPERIMENTAL FEATURE: When CHECK_IMPORT_CASE is defined, check case of
|
||||
imported modules against case of file; this causes "import String" to fail
|
||||
with a NameError exception when it finds "string.py". Normally, you set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue