News for hackers. Stuff that matters.
Re:How To Let People Know You're A Bad Python Programmer by Cald on Friday August 28, 2009 @03:09PM (#792035)
I think the nonlocal keyword would make your second example work as you expect (but I can't test it as I don't have Python 3.0 installed here).

See http://www.python.org/dev/peps/pep-3104/

There are no comments on this comment yet.