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