Lines Matching refs:IntEnum
22 sets of names and values: ``Enum`` and ``IntEnum``. It also defines
30 ``IntEnum``
244 members are not integers (but see `IntEnum`_ below)::
268 (again, ``IntEnum`` was explicitly designed to behave differently, see
418 IntEnum section in Derived Enumerations
422 ``int``. Members of an ``IntEnum`` can be compared to integers;
426 >>> from enum import IntEnum
427 >>> class Shape(IntEnum):
431 >>> class Request(IntEnum):
444 >>> class Shape(IntEnum):
455 ``IntEnum`` values behave like integers in other ways you'd expect::
465 since ``IntEnum`` breaks some semantic promises of an enumeration (by
476 While ``IntEnum`` is part of the ``enum`` module, it would be very
479 class IntEnum(int, Enum):
488 ``Enum`` itself in the sequence of bases, as in the ``IntEnum``
500 IntEnum) treat the enum member as its mixed-in type.
533 While ``Enum`` and ``IntEnum`` are expected to cover the majority of
597 An ordered enumeration that is not based on ``IntEnum`` and so maintains