MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / _richcmp

Method _richcmp

Lib/fractions.py:546–570  ·  view source on GitHub ↗

Helper for comparison operators, for internal use only. Implement comparison between a Rational instance `self`, and either another Rational instance or a float `other`. If `other` is not a Rational instance or a float, return NotImplemented. `op` should be one of t

(self, other, op)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

__lt__Method · 0.80
__gt__Method · 0.80
__le__Method · 0.80
__ge__Method · 0.80

Calls 1

from_floatMethod · 0.95

Tested by

no test coverage detected