Message187895
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. |
|
Date |
User |
Action |
Args |
2013-04-27 08:25:59 | ethan.furman | set | recipients:
+ ethan.furman |
2013-04-27 08:25:59 | ethan.furman | link | issue17853 messages |
2013-04-27 08:25:59 | ethan.furman | create | |
|