[Python-Dev] Unbound locals in class scopes

Ivan Levkivskyi levkivskyi at gmail.com
Sat Jun 20 08:51:47 CEST 2015


There appeared a question in the discussion on
http://bugs.python.org/issue24129 about documenting the behavior that
unbound local variables in a class definition do not follow the normal

Guido said 13 years ago that this behavior should not be changed:
however, things changed a bit in Python 3.4 with the introduction of the
LOAD_CLASSDEREF opcode. I just wanted to double-check whether it is still a
desired/expected behavior.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150620/713992a6/attachment.html>

More information about the Python-Dev mailing list