ID EN
Enum

__xor__

Python 3.11

Returns current flag binary xor’ed with other:

Syntax

PYTHON
__xor__(self, other)

Examples

Example 1
PYTHON
>>> purple ^ white
<Color.GREEN: 2>
>>> purple ^ Color.GREEN
<Color.RED|GREEN|BLUE: 7>