[issue9226] erroneous behavior when creating classes inside a closure

Mark Dickinson report at bugs.python.org
Sun Jul 11 22:30:31 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

I don't see anything in

http://docs.python.org/reference/executionmodel.html#naming-and-binding

to suggest that the class should behave differently from a nested function here;  that is, I'd expect UnboundLocalError.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9226>
_______________________________________


More information about the Python-bugs-list mailing list