[issue27793] Double underscore variables in module are mangled when used in class
Jan Christoph
report at bugs.python.org
Fri Mar 6 16:10:21 EST 2020
Jan Christoph <con-f-use at gmx.net> added the comment:
In particular, this might conflict with the documentation of global, which states:
> If the target is an identifier (name):
>
> If the name does not occur in a global statement in the current code block: the name is bound to the object in the current local namespace.
>
> Otherwise: the name is bound to the object in the current global namespace.
There is no exception of names that are within the body of a class object and start (but not end) with double underscores.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27793>
_______________________________________
More information about the Python-bugs-list
mailing list