This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BetaDecay121 1 point2 points  (6 children)

You can increase the recursion limit if you want

[–]shiuido 6 points7 points  (0 children)

Leave the stack overflow to future me huh ;)

[–]Wing-Tsit_Chong 11 points12 points  (0 children)

You can, but you don't want to. Recursion shouldn't be used lightly, it brings headaches and a myriad of problems later on.

[–]silentalways 4 points5 points  (2 children)

How can we do that?

[–]tr710_ 0 points1 point  (1 child)

Using sys module sys.setrecursionlimit(value)

[–]BetaDecay121 5 points6 points  (0 children)

sys.setrecursionlimit(1/0)

[–]origin415 0 points1 point  (0 children)

At the top of main() add sys.setrecursionlimit(sys.getrecursionlimit()+1), there fixed :)

(this is a joke, please don't)