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

Method __ge__

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

Source from the content-addressed store, hash-verified

451 return self._astuple() > other._astuple()
452
453 def __ge__(self, other):
454 if type(self) != type(other):
455 return NotImplemented
456 return self._astuple() >= other._astuple()
457
458
459# Verify that NotImplemented works correctly

Callers

nothing calls this directly

Calls 2

_astupleMethod · 0.95
_astupleMethod · 0.45

Tested by

no test coverage detected