Lines Matching refs:IntFlag
28 :class:`IntFlag`. It also defines one decorator, :func:`unique`, and one
41 .. class:: IntFlag
44 the bitwise operators without losing their :class:`IntFlag` membership.
45 :class:`IntFlag` members are also subclasses of :class:`int`.
60 .. versionadded:: 3.6 ``Flag``, ``IntFlag``, ``auto``
594 IntFlag section in Derived Enumerations
597 The next variation of :class:`Enum` provided, :class:`IntFlag`, is also based
598 on :class:`int`. The difference being :class:`IntFlag` members can be combined
600 :class:`IntFlag` member. However, as the name implies, :class:`IntFlag`
602 used. Any operation on an :class:`IntFlag` member besides the bit-wise
603 operations will lose the :class:`IntFlag` membership.
607 Sample :class:`IntFlag` class::
609 >>> from enum import IntFlag
610 >>> class Perm(IntFlag):
625 >>> class Perm(IntFlag):
635 Another important difference between :class:`IntFlag` and :class:`Enum` is that
643 Because :class:`IntFlag` members are also subclasses of :class:`int` they can
653 The last variation is :class:`Flag`. Like :class:`IntFlag`, :class:`Flag`
655 :class:`IntFlag`, they cannot be combined with, nor compared against, any
662 Like :class:`IntFlag`, if a combination of :class:`Flag` members results in no
705 recommended, since :class:`IntEnum` and :class:`IntFlag` break some
708 and :class:`IntFlag` should be used only in cases where :class:`Enum` and
750 While :class:`Enum`, :class:`IntEnum`, :class:`IntFlag`, and :class:`Flag` are