bpo-36117: Allow rich comparisons for real-valued complex objects. by brandtbucher · Pull Request #12048 · python/cpython

added 6 commits

February 25, 2019 21:15
Modifies the built-in complex type to allow rich comparisons if both values being compared are real.
These are pretty exhaustive.
This includes changing 4 test assertions in test_fractions.py.
This includes replacing 4 test assertions in test_decimal.py.
This includes more comprehensive testing of complex comparisons with other numeric types.

@blurb-it

Don't call float on a float, and clarify a comment.

remilapeyre