3 ms·
If they use math.inf then yeah probably. You might be able to create an object that always compares as less than something, using something like: class Bo
by contravariant 5y ago
If they use math.inf then yeah probably.
You might be able to create an object that always compares as less than something, using something like:
class Bottom:
def __le__(self, other):
return True
def __lt__(self, other):
return True
though use this with care.