summaryrefslogtreecommitdiffstats
path: root/PC/config.h
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-08-31 19:23:01 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-08-31 19:23:01 (GMT)
commitee5adfbae6df9a4ae8d73bccc4f3a55b7f382d11 (patch)
treeecbac10d7a319d2d655ad1ddffcfdb9b75c9c70b /PC/config.h
parentc88b99ce060e37a9098708483b7e3c8b5db87fbd (diff)
downloadcpython-ee5adfbae6df9a4ae8d73bccc4f3a55b7f382d11.zip
cpython-ee5adfbae6df9a4ae8d73bccc4f3a55b7f382d11.tar.gz
cpython-ee5adfbae6df9a4ae8d73bccc4f3a55b7f382d11.tar.bz2
add user-modifiable recursion_limit
ceval.c: define recurion_limit (static), default value is 2500 define Py_GetRecursionLimit and Py_SetRecursionLimit raise RuntimeError if limit is exceeded PC/config.h: remove plat-specific definition sysmodule.c: add sys.(get|set)recursionlimit
Diffstat (limited to 'PC/config.h')
-rw-r--r--PC/config.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/PC/config.h b/PC/config.h
index a09899b..4a57199 100644
--- a/PC/config.h
+++ b/PC/config.h
@@ -443,13 +443,6 @@ typedef unsigned long uintptr_t;
#define SIZEOF_LONG 4
#define SIZEOF_LONG_LONG 8
-/* 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