Skip to content

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

Merged
merged 1 commit into from
Sep 25, 2019

Conversation

rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Sep 25, 2019

Copy link
Contributor

@eamanu eamanu left a 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.

Copy link
Contributor

@geryogam geryogam left a 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.

@rhettinger rhettinger merged commit 15ccc4f into python:master Sep 25, 2019
@rhettinger rhettinger deleted the super_attribute branch September 25, 2019 15:13
@miss-islington
Copy link
Contributor

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

@bedevere-bot
Copy link

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

@bedevere-bot
Copy link

GH-16392 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 Sep 25, 2019
…-16368)

Improvement suggested by Géry Ogam.
(cherry picked from commit 15ccc4f)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
rhettinger added a commit that referenced this pull request Sep 25, 2019
GH-16391)

Improvement suggested by Géry Ogam.
(cherry picked from commit 15ccc4f)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
rhettinger added a commit that referenced this pull request Sep 25, 2019
GH-16392)

Improvement suggested by Géry Ogam.
(cherry picked from commit 15ccc4f)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
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.

7 participants