Message271164
If main imports another file, and this file imports an Enum class from main, isinstance will return false for Enum variables set in this file, causing the Enums to never match.
A proof of concept is added as a zip. I thank Kwpolska for simplifying my initial proof of concept.
To test this, unzip both files into the same directory and launch main.py with Python 3. I have succesfully been able to reproduce this issue on Python 3.4.3.
From discussion on IRC with Vgr, PEP 499 may be related to this issue: https://www.python.org/dev/peps/pep-0499/. |
|
Date |
User |
Action |
Args |
2016-07-24 15:46:17 | SylvieLorxu | set | recipients:
+ SylvieLorxu, Kwpolska |
2016-07-24 15:46:17 | SylvieLorxu | set | messageid: <1469375177.67.0.287991264427.issue27607@psf.upfronthosting.co.za> |
2016-07-24 15:46:17 | SylvieLorxu | link | issue27607 messages |
2016-07-24 15:46:17 | SylvieLorxu | create | |
|