]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Set the max recursion limit to 5000 -- rather conservative (this uses
authorGuido van Rossum <guido@python.org>
Wed, 9 Jun 1999 15:36:37 +0000 (15:36 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 9 Jun 1999 15:36:37 +0000 (15:36 +0000)
0.5 MB of the 1 MB available by default for stack on Win32 platforms).

PC/config.h

index 3b6e5440197168e298df07a6379389ac5505b3f1..48c11791d2e1819f03e694a6471ef576aaf2dec4 100644 (file)
@@ -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