multun <victor.col...@prologin.org> added the comment:

Closing, this is documented, and as such most likely intended.

"A class definition is an executable statement that may use and define names. 
These references follow the normal rules for name resolution with an exception 
that unbound local variables are looked up in the global namespace."
https://docs.python.org/3.7/reference/executionmodel.html#builtins-and-restricted-execution

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
versions: +Python 2.7, Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34961>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to