summaryrefslogtreecommitdiff
path: root/PC
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-08-31 19:23:01 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2000-08-31 19:23:01 +0000
commit6f769734cd6186f6a82cac8a4a15c94db639f9f9 (patch)
treed1505a1ef8687881df21b6b2463884a1b88dfd0f /PC
parent1dce7186414f15e60a1889cad53f993933f50553 (diff)
downloadcpython-6f769734cd6186f6a82cac8a4a15c94db639f9f9.tar.gz
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')
-rw-r--r--PC/config.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/PC/config.h b/PC/config.h
index a09899b943..4a57199fdc 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