Skip to content

[3.7] bpo-8722: Document __getattr__ behavior with AttributeError in property (GH-4754)#5543

Merged
ncoghlan merged 1 commit intopython:3.7from
miss-islington:backport-d1f3181-3.7
Feb 5, 2018
Merged

[3.7] bpo-8722: Document __getattr__ behavior with AttributeError in property (GH-4754)#5543
ncoghlan merged 1 commit intopython:3.7from
miss-islington:backport-d1f3181-3.7

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Feb 5, 2018

When __getattr__ is implemented, attribute lookup will always fall back to that,
even if the initial failure comes from __getattribute__ or a descriptor's __get__
method (including property methods).
(cherry picked from commit d1f3181)

Co-authored-by: Cheryl Sabella cheryl.sabella@gmail.com

https://bugs.python.org/issue8722

…ty (pythonGH-4754)

When `__getattr__` is implemented, attribute lookup will always fall back to that,
even if the initial failure comes from `__getattribute__` or a descriptor's `__get__`
method (including property methods).
(cherry picked from commit d1f3181)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
@miss-islington
Copy link
Copy Markdown
Contributor Author

@csabella and @ncoghlan: Backport status check is done, and it's a success ✅ .

@ncoghlan ncoghlan merged commit fea0a12 into python:3.7 Feb 5, 2018
@miss-islington
Copy link
Copy Markdown
Contributor Author

Thanks, @ncoghlan!

@miss-islington miss-islington deleted the backport-d1f3181-3.7 branch February 5, 2018 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants