Home
last modified time | relevance | path

Searched refs:_richcmp (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/
Dfractions.py546 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/
Dfractions.py588 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/
Dtest_fractions.py29 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/
Dtest_fractions.py25 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)