Compares self to other using abstract repr., ignoring sign. Like compare_total, but with operand's sign ignored and assumed to be 0.
(self, other, context=None)
| 2971 | |
| 2972 | |
| 2973 | def compare_total_mag(self, other, context=None): |
| 2974 | """Compares self to other using abstract repr., ignoring sign. |
| 2975 | |
| 2976 | Like compare_total, but with operand's sign ignored and assumed to be 0. |
| 2977 | """ |
| 2978 | other = _convert_other(other, raiseit=True) |
| 2979 | |
| 2980 | s = self.copy_abs() |
| 2981 | o = other.copy_abs() |
| 2982 | return s.compare_total(o) |
| 2983 | |
| 2984 | def copy_abs(self): |
| 2985 | """Returns a copy with the sign set to 0. """ |