-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-38255: super() can search attributes as well as methods #16368
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
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.
I prefer this PR instead of https://github.com/python/cpython/pull/16331/files. I think is better mention that we can use super() for attribute lookups, and not just change word attribute
for methods
. I think that could be confuse.
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.
Thanks @rhettinger, I have closed my PR. You can merge.
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
GH-16391 is a backport of this pull request to the 3.8 branch. |
GH-16392 is a backport of this pull request to the 3.7 branch. |
…-16368) Improvement suggested by Géry Ogam.
https://bugs.python.org/issue38255