RuntimeError 'maximum recursion depth exceeded'

Georgy Pruss SEE_AT_THE_END at hotmail.com
Sat Nov 15 05:14:23 EST 2003


Sometimes I get this error.
E.g.

>>> sum = lambda n: n<=1 or n+sum(n-1) # just to illustrate the error
>>> sum(999)
499500
>>> sum(1000)
...........
RuntimeError: maximum recursion depth exceeded

Is there any way to set a bigger stack in Python?

G-:
-- 
Georgy Pruss
E^mail: 'ZDAwMTEyMHQwMzMwQGhvdG1haWwuY29t\n'.decode('base64')






More information about the Python-list mailing list