Mark Dickinson <dicki...@gmail.com> added the comment: > Is there any way to produce the desired behavior?
Not directly, in Python 2.x. (But there's the 'nonlocal' keyword in 3.x.) There are various workarounds, but what's best depends on what you're doing. The python-list mailing list is probably a better place to get answers. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9049> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com