diff options
Diffstat (limited to 'Doc/library/enum.rst')
-rw-r--r-- | Doc/library/enum.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index f09c60c..c2030fa 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -371,8 +371,8 @@ The :class:`Enum` class is callable, providing the following functional API:: >>> list(Animal) [<Animal.ant: 1>, <Animal.bee: 2>, <Animal.cat: 3>, <Animal.dog: 4>] -The semantics of this API resemble :class:`namedtuple`. The first argument -of the call to :class:`Enum` is the name of the enumeration. +The semantics of this API resemble :class:`~collections.namedtuple`. The first +argument of the call to :class:`Enum` is the name of the enumeration. The second argument is the *source* of enumeration member names. It can be a whitespace-separated string of names, a sequence of names, a sequence of |