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

Method __le__

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

Source from the content-addressed store, hash-verified

441 return self._astuple() < other._astuple()
442
443 def __le__(self, other):
444 if type(self) != type(other):
445 return NotImplemented
446 return self._astuple() <= other._astuple()
447
448 def __gt__(self, other):
449 if type(self) != type(other):

Callers

nothing calls this directly

Calls 2

_astupleMethod · 0.95
_astupleMethod · 0.45

Tested by

no test coverage detected