Lines Matching refs:IntFlag
34 :class:`IntFlag`. It also defines one decorator, :func:`unique`, and one
47 .. class:: IntFlag
50 the bitwise operators without losing their :class:`IntFlag` membership.
51 :class:`IntFlag` members are also subclasses of :class:`int`.
67 .. versionadded:: 3.6 ``Flag``, ``IntFlag``, ``auto``
605 IntFlag section in Derived Enumerations
608 The next variation of :class:`Enum` provided, :class:`IntFlag`, is also based
609 on :class:`int`. The difference being :class:`IntFlag` members can be combined
611 :class:`IntFlag` member. However, as the name implies, :class:`IntFlag`
613 used. Any operation on an :class:`IntFlag` member besides the bit-wise
614 operations will lose the :class:`IntFlag` membership.
618 Sample :class:`IntFlag` class::
620 >>> from enum import IntFlag
621 >>> class Perm(IntFlag):
636 >>> class Perm(IntFlag):
646 Another important difference between :class:`IntFlag` and :class:`Enum` is that
654 Because :class:`IntFlag` members are also subclasses of :class:`int` they can
664 The last variation is :class:`Flag`. Like :class:`IntFlag`, :class:`Flag`
666 :class:`IntFlag`, they cannot be combined with, nor compared against, any
673 Like :class:`IntFlag`, if a combination of :class:`Flag` members results in no
716 recommended, since :class:`IntEnum` and :class:`IntFlag` break some
719 and :class:`IntFlag` should be used only in cases where :class:`Enum` and
793 While :class:`Enum`, :class:`IntEnum`, :class:`IntFlag`, and :class:`Flag` are