Enjoy this new electronic music composition. I recommend listening with good bass headphones.

“Snow Day” (3:39, MP3, 8.4 MB)
Archive for November, 2010
New Music, “Snow Day”
November 23, 2010Python enforces recursion limitations.
November 15, 2010Python has limits on recursion depth. This is a nice language feature because it prevents infinite loops from exploding your runtime, but it can be problematic when dealing with deep data structures and/or graph traversal.
If you see this error. . .
RuntimeError: maximum recursion depth exceeded
. . . don’t freak out. Instead, try increasing the recursion limit. First, find the current limit:
>>> import sys
>>> sys.getrecursionlimit()
1000
. . . and then increase the limit:
>>> sys.setrecursionlimit(10000)
In my case, I changed the limit from 1000 to 10000, but obviously the appropriate numbers might be different for your problem.