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@python components: Documentation, Library (Lib) messages: 254436 nosy: SilentGhost, barry, docs@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 <rep...@bugs.python.org> <http://bugs.python.org/issue25594> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com