Staging: this is not the live site, pydocs.org.
Changed in 3.11
- 3.11: The repr() of zero-valued flags has changed. It is now: >>> Color(0) <Color: 0>
Members of Flag
_
- __and__
- Returns current flag binary and’ed with other:
- __bool__
- classes/types should always be True.
- __contains__
- Returns True if self has at least the same flags set as other.
- __invert__
- Returns all the flags in type(self) that are not in self:
- __iter__
- Returns flags in definition order.
- __len__
- Return the number of members (no aliases)
- __xor__
- Returns current flag binary xor’ed with other:
- _numeric_repr_
- Return the canonical string representation of the object.