[issue27607] Enums never match if imported from another file

R. David Murray report at bugs.python.org
Sun Jul 24 19:58:37 EDT 2016


R. David Murray added the comment:

This is a consequence of the way __main__ works.  You actually have two separate instances of the Enum class.  If there is a fix for this it would be that PEP, so I'm not sure there is any  point in keeping this issue open.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27607>
_______________________________________


More information about the Python-bugs-list mailing list