Skip to content

bpo-36117: Allow rich comparisons for real-valued complex objects.#12048

Closed
brandtbucher wants to merge 8 commits intopython:masterfrom
brandtbucher:complex-comparisons
Closed

bpo-36117: Allow rich comparisons for real-valued complex objects.#12048
brandtbucher wants to merge 8 commits intopython:masterfrom
brandtbucher:complex-comparisons

Conversation

@brandtbucher
Copy link
Copy Markdown
Member

@brandtbucher brandtbucher commented Feb 26, 2019

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.
Pretty cool!
blurb-it bot and others added 2 commits February 26, 2019 08:25
Don't call float on a float, and clarify a comment.
Copy link
Copy Markdown

@remilapeyre remilapeyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brandtbucher the bug related to this pull request was closed as "Not a bug". I think it's best to close this pull request.

@brandtbucher brandtbucher deleted the complex-comparisons branch March 21, 2019 03:55
@brandtbucher brandtbucher restored the complex-comparisons branch September 6, 2019 07:32
@brandtbucher brandtbucher deleted the complex-comparisons branch September 6, 2019 07:32
@brandtbucher brandtbucher restored the complex-comparisons branch September 6, 2019 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants