bpo-8264: Document hasattr and getattr behavior for private attributes#23513
bpo-8264: Document hasattr and getattr behavior for private attributes#23513ethanfurman merged 5 commits intopython:masterfrom
Conversation
Co-Authored-By: Catalin Iacob <iacobcatalin@gmail.com>
|
This improves |
|
To elaborate on that: I think documenting |
No it was a mistake, thanks for catching that. I meant to only document hasatttr and getattr.
Taken from the original patch author: "hasattr is documented in terms of getattr so I would say it's not needed there.". I agree with this. |
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase And if you don't make the requested changes, you will be put in the comfy chair! |
|
I have made the requested changes; please review again. Thanks. |
|
Thanks for making the requested changes! @ethanfurman: please review the changes made to this pull request. |
|
LGTM |
|
This PR is stale because it has been open for 30 days with no activity. |
|
@ethanfurman sorry to disturb, is there anything else I can do to help move this forward? |
|
This PR is stale because it has been open for 30 days with no activity. |
|
My apologies, I lost track of this. Reviewing now. |
No worries. Thanks for the review :)! |
pythonGH-23513) Clarify ``getattr`` and ``setattr`` requirements for accessing name-mangled attributes Co-Authored-By: Catalin Iacob <iacobcatalin@gmail.com>
|
Thanks @Fidget-Spinner for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
pythonGH-23513) Clarify ``getattr`` and ``setattr`` requirements for accessing name-mangled attributes Co-Authored-By: Catalin Iacob <iacobcatalin@gmail.com> (cherry picked from commit 2edaf6a) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
|
GH-26238 is a backport of this pull request to the 3.9 branch. |
|
Does this need a backport to 3.10 as well? |
Nope. It was merged back when main was 3.10. Thanks for merging the backport! Edit: Oops I mistook this PR for the backport. Please ignore the second part. The backport to 3.9 hasn't landed yet. |
Co-Authored-By: Catalin Iacob iacobcatalin@gmail.com
https://bugs.python.org/issue8264