Ethan Furman added the comment:

Nice work with the debugging. but what you have proved is that Python is 
behaving exactly as designed [0].

While true that the current implementation does have the pitfall you have 
discovered, removing it is not worth the cost in complexity.

The proper "fix" is not to have __vars outside of a class.


[0] 
[https://docs.python.org/2/tutorial/classes.html#private-variables-and-class-local-references]

----------
resolution: not a bug -> rejected
status: open -> closed

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

Reply via email to