Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • It may be noted that in the case of the second "common buggy situation" above, python 3.12 prints an erroneous message in the stack trace: "[Previous line repeated 997 more times]" even after you have successfully increased the recursion depth. This message is correct only for the case of the default recursion depth of 1000. I recommend using a try/except structure to catch the "RecursionError" exception to avoid any confusion over whether a increased recursion depth was exceeded. Commented Sep 21 at 19:58