Message82906
Set sys.setrecursionlimit to 50 or lower. Then, the second time the
recursion limit is reached, the interpreter crashes with a stack
overflow.
This happens both with released 3.0.1 and the py3k branch, on Windows.
At least on my PC, 51 appears to be the minimum acceptable value for
sys.setrecursionlimit.
Python 3.1a0 (py3k, Feb 28 2009, 04:16:04) [MSC v.1500 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
p3> import sys
p3> sys.setrecursionlimit(20)
p3> def g(): g()
...
p3> g()
Traceback (most recent call last):
...
RuntimeError: maximum recursion depth exceeded
p3> g()
Fatal Python error: Cannot recover from stack overflow.
This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.
C:\APPS\python\py3k\PCbuild> |
|
Date |
User |
Action |
Args |
2009-02-28 11:26:44 | ggenellina | set | recipients:
+ ggenellina |
2009-02-28 11:26:44 | ggenellina | set | messageid: <1235820404.86.0.303625232795.issue5392@psf.upfronthosting.co.za> |
2009-02-28 11:26:43 | ggenellina | link | issue5392 messages |
2009-02-28 11:26:42 | ggenellina | create | |
|