-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Conversation
Thanks for your time @alclarks, and welcome to CPython! 😎 |
There was a problem hiding this 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!
Hi @berkerpeksag, if this change looks good can it please be merged? |
There was a problem hiding this 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.
Thanks @alclarks for the PR, and @berkerpeksag for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
GH-18185 is a backport of this pull request to the 3.8 branch. |
GH-18186 is a backport of this pull request to the 3.7 branch. |
(cherry picked from commit 7de6174) Co-authored-by: alclarks <[email protected]>
(cherry picked from commit 7de6174) Co-authored-by: alclarks <[email protected]>
(cherry picked from commit 7de6174) Co-authored-by: alclarks <[email protected]>
(cherry picked from commit 7de6174) Co-authored-by: alclarks <[email protected]>
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