fix operation translation taking ages

This commit is contained in:
2023-06-18 01:20:21 +01:00
parent 63d7616053
commit 14ae68b9d1
24 changed files with 576 additions and 441 deletions

21
testingoop.py Normal file
View File

@@ -0,0 +1,21 @@
class obj1:
def __init__(self) -> None:
pass
def __add__(self, other):
print("obj1")
return 10
class obj2:
def __init__(self) -> None:
pass
def __add__(self, other):
print("obj2")
return 20
obj1 = obj1()
obj2 = obj2()
print(obj1 + obj2)
print(obj2 + obj1)