MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __lt__

Method __lt__

example_code/item_051.py:438–441  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

436 )
437
438 def __lt__(self, other):
439 if type(self) != type(other):
440 return NotImplemented
441 return self._astuple() < other._astuple()
442
443 def __le__(self, other):
444 if type(self) != type(other):

Callers

nothing calls this directly

Calls 2

_astupleMethod · 0.95
_astupleMethod · 0.45

Tested by

no test coverage detected