Python __rxor__() Magic Method
Syntax object.__rxor__(self, other) The Python __rxor__() method implements the reverse Bitwise XOR ^ operation with reflected, swapped operands. So, when you call x ^ y, Python attempts to call x.__xor__(y). If the method is not implemented, Python attempts to call __rxor__ on the right operand and if this isn’t implemented either, it raises a TypeError. … Read more