Files
Core2forAWS-MicroPython/tests/float/complex_reverse_op.py
T

11 lines
155 B
Python
Raw Normal View History

# test complex interacting with special reverse methods
class A:
def __radd__(self, x):
print("__radd__")
return 2
print(1j + A())