[issue27607] Enums never match if imported from another file
Ethan Furman
report at bugs.python.org
Sun Jul 24 22:23:55 EDT 2016
Ethan Furman added the comment:
Sylvia, if you have any control over the name of your zip files, please use something shorter. ;)
The files inside are a 'main.py' and a 'module.py' -- notice there is no '__main__.py'. So it can't be executed as 'python3 -m blahblah'.
I tried renaming 'main.py' to '__main__.py' but then I get either
ImportError: cannot import name 'Module'
or
ImportError: No module named 'module'
I'm happy to check for strange Enum interactions, but I need a working test case first.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27607>
_______________________________________
More information about the Python-bugs-list
mailing list