Message336628
Currently, it isn't legal to perform <, >, <=, or >= rich comparisons on any complex objects, even though these operations are mathematically well-defined for real numbers.
The attached PR addresses this by defining rich comparisons for real-valued complex objects against subclasses of int and float, as well as for decimal.Decimal and fractions.Fraction types. They still raise TypeErrors when either of the operands has a nonzero imaginary part. |
|
Date |
User |
Action |
Args |
2019-02-26 08:04:22 | brandtbucher | set | recipients:
+ brandtbucher |
2019-02-26 08:04:22 | brandtbucher | set | messageid: <1551168262.55.0.429171834399.issue36117@roundup.psfhosted.org> |
2019-02-26 08:04:22 | brandtbucher | link | issue36117 messages |
2019-02-26 08:04:22 | brandtbucher | create | |
|