mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
fix operation translation taking ages
This commit is contained in:
21
testingoop.py
Normal file
21
testingoop.py
Normal 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)
|
||||
Reference in New Issue
Block a user