Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTail call optimization decorator (Python) #46
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not positive, but I don't think this recipe made it into the repo: http://code.activestate.com/recipes/474088-tail-call-optimization-decorator/
Here's the updated code for Python 3 (inherit from BaseException, and updated syntax for except):