Skip to content

Improve discussion about how __getattr__ is invoked. #31435

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 39 commits into from
Feb 20, 2022

Conversation

rhettinger
Copy link
Contributor

It isn't just calls to object.__getattribute__ that bypass the getattr hook. Any __getattribute__ call including super will suffice.

rhettinger and others added 30 commits March 15, 2021 21:12
.
Merge branch 'master' of github.com:python/cpython
.
Merge branch 'master' of github.com:python/cpython
.
Merge branch 'master' of github.com:python/cpython
.
Merge branch 'master' of github.com:python/cpython
Merge branch 'main' of github.com:python/cpython into main
Merge branch 'main' of github.com:python/cpython
@rhettinger rhettinger merged commit 12a2e41 into python:main Feb 20, 2022
@miss-islington
Copy link
Contributor

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 20, 2022
(cherry picked from commit 12a2e41)

Co-authored-by: Raymond Hettinger <[email protected]>
@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Feb 20, 2022
@bedevere-bot
Copy link

GH-31437 is a backport of this pull request to the 3.10 branch.

@rhettinger rhettinger added the needs backport to 3.9 only security fixes label Feb 20, 2022
@miss-islington
Copy link
Contributor

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 20, 2022
(cherry picked from commit 12a2e41)

Co-authored-by: Raymond Hettinger <[email protected]>
@bedevere-bot
Copy link

GH-31438 is a backport of this pull request to the 3.9 branch.

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 issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants