Skip to content

bpo-15243: Specify __prepare__ should be a classmethod #17124

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

Merged
merged 1 commit into from
Jan 25, 2020

Conversation

alclarks
Copy link
Contributor

@alclarks alclarks commented Nov 12, 2019

Hi,

This is an updated patch for the issue https://bugs.python.org/issue15243 - specifying that prepare should be a classmethod.

@brandtbucher

https://bugs.python.org/issue15243

@brandtbucher
Copy link
Member

Thanks for your time @alclarks, and welcome to CPython! 😎

Copy link
Member

@brandtbucher brandtbucher left a comment

Choose a reason for hiding this comment

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

This one actually bit me a couple of weeks ago. Looks good!

@brandtbucher
Copy link
Member

@berkerpeksag

@alclarks
Copy link
Contributor Author

Hi @berkerpeksag, if this change looks good can it please be merged?

@csabella csabella requested a review from berkerpeksag January 25, 2020 13:45
Copy link
Member

@berkerpeksag berkerpeksag left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! The example I mentioned in the issue seems to be removed without a replacement in c2ccac7.

@miss-islington
Copy link
Contributor

Thanks @alclarks for the PR, and @berkerpeksag for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-18185 is a backport of this pull request to the 3.8 branch.

@bedevere-bot
Copy link

GH-18186 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 25, 2020
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 25, 2020
berkerpeksag pushed a commit that referenced this pull request Jan 25, 2020
berkerpeksag pushed a commit that referenced this pull request Jan 25, 2020
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants