Message254436
In enum docs[0], there is a suggestion that the attribute access on members should raise an AttributeError:
>>> Color.red.blue
Traceback (most recent call last):
...
AttributeError: 'Color' object has no attribute 'blue'
which is demonstrably wrong in either 3.5 or 3.6. I presume that's a doc issue and I'd be glad to propose the patch as soon as someone more familiar with the module could confirm that.
[0] https://docs.python.org/3.6/library/enum.html#finer-points |
|
Date |
User |
Action |
Args |
2015-11-10 08:27:47 | SilentGhost | set | recipients:
+ SilentGhost, barry, eli.bendersky, docs@python, ethan.furman |
2015-11-10 08:27:47 | SilentGhost | set | messageid: <1447144067.5.0.526378354242.issue25594@psf.upfronthosting.co.za> |
2015-11-10 08:27:47 | SilentGhost | link | issue25594 messages |
2015-11-10 08:27:46 | SilentGhost | create | |
|