Is there a way to test when a program's recursion limit is reached? For example:
def funct():
print "Hello"
#Some code for testing the recursion limit.
#Some more code to execute
If you are wondering why I want to know this, here is why: I want to hide an Easter egg in a program, but I can't do that until I found out how to do what I am asking. So, how can I test when the recursion limit is reached? Is there even a way?