Searched refs:_richcmp (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/ |
D | fractions.py | 546 def _richcmp(self, other, op): member in Fraction 574 return a._richcmp(b, operator.lt) 578 return a._richcmp(b, operator.gt) 582 return a._richcmp(b, operator.le) 586 return a._richcmp(b, operator.ge)
|
/external/python/cpython3/Lib/ |
D | fractions.py | 588 def _richcmp(self, other, op): member in Fraction 612 return a._richcmp(b, operator.lt) 616 return a._richcmp(b, operator.gt) 620 return a._richcmp(b, operator.le) 624 return a._richcmp(b, operator.ge)
|
/external/python/cpython2/Lib/test/ |
D | test_fractions.py | 29 def _richcmp(self, other, op): member in DummyFloat 37 def __eq__(self, other): return self._richcmp(other, operator.eq) 38 def __le__(self, other): return self._richcmp(other, operator.le) 39 def __lt__(self, other): return self._richcmp(other, operator.lt) 40 def __ge__(self, other): return self._richcmp(other, operator.ge) 41 def __gt__(self, other): return self._richcmp(other, operator.gt)
|
/external/python/cpython3/Lib/test/ |
D | test_fractions.py | 25 def _richcmp(self, other, op): member in DummyFloat 33 def __eq__(self, other): return self._richcmp(other, operator.eq) 34 def __le__(self, other): return self._richcmp(other, operator.le) 35 def __lt__(self, other): return self._richcmp(other, operator.lt) 36 def __ge__(self, other): return self._richcmp(other, operator.ge) 37 def __gt__(self, other): return self._richcmp(other, operator.gt)
|