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

Method __gt__

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

Source from the content-addressed store, hash-verified

446 return self._astuple() <= other._astuple()
447
448 def __gt__(self, other):
449 if type(self) != type(other):
450 return NotImplemented
451 return self._astuple() > other._astuple()
452
453 def __ge__(self, other):
454 if type(self) != type(other):

Callers

nothing calls this directly

Calls 2

_astupleMethod · 0.95
_astupleMethod · 0.45

Tested by

no test coverage detected