Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-23699: Use a macro to reduce boilerplate code in rich comparison functions #793

Merged
merged 1 commit into from
Nov 2, 2017

Conversation

stratakis
Copy link
Contributor

@stratakis stratakis commented Mar 23, 2017

Patch from @encukou

More info at: http://bugs.python.org/issue23699

Rebased for the current master branch.

https://bugs.python.org/issue23699

@mention-bot
Copy link

@stratakis, thanks for your PR! By analyzing the history of the files in this pull request, we identified @freddrake, @loewis and @benjaminp to be potential reviewers.

@brettcannon brettcannon added the type-feature A feature request or enhancement label Mar 27, 2017
Copy link
Contributor

@ncoghlan ncoghlan left a comment

Choose a reason for hiding this comment

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

The change itself looks good to me (reducing the total line count by 250+ lines is a sign of a good pattern extraction), so there's just the Misc/NEWS and Misc/ACKS bookkeeping needed prior to merging.

@stratakis
Copy link
Contributor Author

Thanks for taking a look at it Nick. Will update the PR with the Misc/NEWS and Misc/ACKS files. Do you think it would be possible to backport this change to the 3.6 branch? Should I make a PR for a backport as well?

@ncoghlan
Copy link
Contributor

No, it's a new feature, so projects will need to either define it themselves or get it from a compatibility project like Py3C for older releases.

@stratakis
Copy link
Contributor Author

PR has been rebased on top of master and the tests pass. Is there some way I can help moving this forward?

@ncoghlan ncoghlan merged commit e8b1965 into python:master Nov 2, 2017
@ncoghlan
Copy link
Contributor

ncoghlan commented Nov 2, 2017

Thanks!

@stratakis stratakis deleted the richcompare_macro branch November 2, 2017 10:36
embray pushed a commit to embray/cpython that referenced this pull request Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants