kopia lustrzana https://github.com/micropython/micropython
11 wiersze
145 B
Python
11 wiersze
145 B
Python
|
# test complex interacting with special methods
|
||
|
|
||
|
|
||
|
class A:
|
||
|
def __add__(self, x):
|
||
|
print("__add__")
|
||
|
return 1
|
||
|
|
||
|
|
||
|
print(A() + 1j)
|