class SavingsAccount(object):
def __init__(self, name, pin, balance = 0.0):
self._name = name
self._pin = pin
self._balance = balance
def __lt__(self,other):
print("this is <")
return self._name < other._name
s1 = SavingsAccount("Ken","1000",0)
s2 = SavingsAccount("Bill", "1001",30)
s1<s2
this is <
False
s1>s2
this is <
True
there is no problem calling the _ _ lt__ method when S1 < S2. The problem is that when calling >, it also seems to have called _ _ lt__, but the result seems to be a non-operation. What is the feature of python? Under what circumstances will this result occur