[Python-checkins] CVS: python/dist/src/PC config.h,1.45,1.46
Jeremy Hylton
python-dev@python.org
Thu, 31 Aug 2000 12:23:04 -0700
Update of /cvsroot/python/python/dist/src/PC
In directory slayer.i.sourceforge.net:/tmp/cvs-serv961/PC
Modified Files:
config.h
Log Message:
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
Index: config.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/config.h,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -r1.45 -r1.46
*** config.h 2000/08/15 22:33:59 1.45
--- config.h 2000/08/31 19:23:01 1.46
***************
*** 444,454 ****
#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
--- 444,447 ----