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')