Lines Matching refs:enumeration

13 An enumeration is a set of symbolic names (members) bound to unique, constant
14 values. Within an enumeration, the members can be compared by identity, and
15 the enumeration itself can be iterated over.
21 This module defines two enumeration classes that can be used to define unique
44 `Functional API`_. To define an enumeration, subclass ``Enum`` as
55 - The class ``Color`` is an *enumeration* (or *enum*)
57 *enumeration members* (or *enum members*).
78 The *type* of an enumeration member is the enumeration it belongs to::
123 Programmatic access to enumeration members and their attributes
195 that none exist in a particular enumeration::
215 It includes all names defined in the enumeration, including the aliases::
226 the enumeration members. For example, finding all the aliases::
243 Ordered comparisons between enumeration values are *not* supported. Enum
267 Comparisons against non-enumeration values will always compare not equal
278 The examples above use integers for enumeration values. Using integers is
281 the actual value of an enumeration is. But if the value *is* important,
285 usual. If we have this enumeration::
300 ... # cls here is the enumeration
314 all other attributes defined within an enumeration will become members of this
315 enumeration, with the exception of *__dunder__* names and descriptors (methods
320 If your enumeration defines ``__new__`` and/or ``__init__`` then
328 Subclassing an enumeration is allowed only if the enumeration does not define
391 of the call to ``Enum`` is the name of the enumeration.
393 The second argument is the *source* of enumeration member names. It can be a
409 enumeration is being created in (e.g. it will fail if you use a utility
465 since ``IntEnum`` breaks some semantic promises of an enumeration (by
517 enumeration's ``__members__`` gathering any aliases it finds; if any are
542 Avoids having to specify the value for each enumeration member::
597 An ordered enumeration that is not based on ``IntEnum`` and so maintains