diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2013-09-15 19:34:36 (GMT) |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2013-09-15 19:34:36 (GMT) |
commit | 101e0746d36caa56b93d5c61d8e54938c6edf93b (patch) | |
tree | 06f884e13cf1880a0f3a003bc4bb60b0c76a91b3 /Doc/library/enum.rst | |
parent | defe7f4c62b992380fdda2833bb46a6505c839f4 (diff) | |
download | cpython-101e0746d36caa56b93d5c61d8e54938c6edf93b.zip cpython-101e0746d36caa56b93d5c61d8e54938c6edf93b.tar.gz cpython-101e0746d36caa56b93d5c61d8e54938c6edf93b.tar.bz2 |
Close #18989: enum members will no longer overwrite other attributes, nor be overwritten by them.
Diffstat (limited to 'Doc/library/enum.rst')
-rw-r--r-- | Doc/library/enum.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 236275d..c5076b2 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -154,6 +154,12 @@ return A:: >>> Shape(2) <Shape.square: 2> +.. note:: + + Attempting to create a member with the same name as an already + defined attribute (another member, a method, etc.) or attempting to create + an attribute with the same name as a member is not allowed. + Ensuring unique enumeration values ---------------------------------- |