Ethan Furman added the comment:

One more data point to truly demonstrate that something is wrong:

--------------------------------------------
--> def test():
...   class Season(Enum):
...     print(locals())
...     Season = locals()['Season']
...     print(locals())
...
--> test()
{'Season': <class 'aenum.Season'>, '__module__': '__main__', '__locals__': 
{...}}
{'Season': <class 'aenum.Season'>, '__module__': '__main__', '__locals__': 
{...}}
--------------------------------------------

Notice the class name space *did not change in any way* before and after 
setting 'Season' manually.

----------

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

Reply via email to