[issue30545] Enum equality across modules: comparing objects instead of values

2017-06-02 Thread Madhav Datt
Madhav Datt added the comment: Thanks a lot for those points Ethan. I feel I haven't done a very good job of explaining the bug, but let me use an example. Let's say we have an Enum called MyEnum, which is in a Python module called ModuleA. ModuleB imports ModuleA, and ModuleC imports both

[issue30545] Enum equality across modules: comparing objects instead of values

2017-06-01 Thread Madhav Datt
New submission from Madhav Datt: The problem is described with an example in this StackOverflow question (https://stackoverflow.com/questions/26589805/python-enums-across-modules). Like in C and other languages, I would expect Enum equality to work across modules and not compare enum states