summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-06-18 16:14:26 (GMT)
committerGitHub <noreply@github.com>2018-06-18 16:14:26 (GMT)
commite57f91a0f0d5700ec466c9dd0fd2d2b5323a5e76 (patch)
tree760e5d6007003a048a9c0f1c67a765e7a0810419 /Doc
parentea3dc8029ab6a0f1ee6a8a72f1612dea74892e08 (diff)
downloadcpython-e57f91a0f0d5700ec466c9dd0fd2d2b5323a5e76.zip
cpython-e57f91a0f0d5700ec466c9dd0fd2d2b5323a5e76.tar.gz
cpython-e57f91a0f0d5700ec466c9dd0fd2d2b5323a5e76.tar.bz2
bpo-33866: enum: Stop using OrderedDict (GH-7698)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/enum.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index fc65a3d..0394681 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -281,7 +281,7 @@ Iterating over the members of an enum does not provide the aliases::
>>> list(Shape)
[<Shape.SQUARE: 2>, <Shape.DIAMOND: 1>, <Shape.CIRCLE: 3>]
-The special attribute ``__members__`` is an ordered dictionary mapping names
+The special attribute ``__members__`` is a read-only ordered mapping of names
to members. It includes all names defined in the enumeration, including the
aliases::
@@ -998,7 +998,7 @@ Finer Points
Supported ``__dunder__`` names
""""""""""""""""""""""""""""""
-:attr:`__members__` is an :class:`OrderedDict` of ``member_name``:``member``
+:attr:`__members__` is a read-only ordered mapping of ``member_name``:``member``
items. It is only available on the class.
:meth:`__new__`, if specified, must create and return the enum members; it is