Skip to content

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

Merged
ncoghlan merged 1 commit into
python:3.6from
miss-islington:backport-d1f3181-3.6
Feb 5, 2018
Merged

[3.6] bpo-8722: Document __getattr__ behavior with AttributeError in property (GH-4754)#5542
ncoghlan merged 1 commit into
python:3.6from
miss-islington:backport-d1f3181-3.6

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

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 a8c25d1 into python:3.6 Feb 5, 2018
@miss-islington

Copy link
Copy Markdown
Contributor Author

Thanks, @ncoghlan!

@miss-islington miss-islington deleted the backport-d1f3181-3.6 branch February 5, 2018 03:10
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