(self, other, context=None)
| 841 | return self._cmp(other) == 0 |
| 842 | |
| 843 | def __lt__(self, other, context=None): |
| 844 | self, other = _convert_for_comparison(self, other) |
| 845 | if other is NotImplemented: |
| 846 | return other |
| 847 | ans = self._compare_check_nans(other, context) |
| 848 | if ans: |
| 849 | return False |
| 850 | return self._cmp(other) < 0 |
| 851 | |
| 852 | def __le__(self, other, context=None): |
| 853 | self, other = _convert_for_comparison(self, other) |