[New-bugs-announce] [issue25594] enum docs outdated re attribute access
SilentGhost
report at bugs.python.org
Tue Nov 10 03:27:47 EST 2015
New submission from SilentGhost:
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
----------
assignee: docs at python
components: Documentation, Library (Lib)
messages: 254436
nosy: SilentGhost, barry, docs at python, eli.bendersky, ethan.furman
priority: normal
severity: normal
status: open
title: enum docs outdated re attribute access
versions: Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25594>
_______________________________________
More information about the New-bugs-announce
mailing list