Skip to content
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

Programming FAQ: Mention object.__setattr__ as a technique for delegation #124617

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Sep 26, 2024

This is used for example by threading.local in the stdlib.


📚 Documentation preview 📚: https://cpython-previews--124617.org.readthedocs.build/

…tion

This is used for example by threading.local in the stdlib.
@AlexWaygood AlexWaygood added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Sep 26, 2024
@JelleZijlstra JelleZijlstra merged commit 43979fa into python:main Sep 26, 2024
23 checks passed
@miss-islington-app
Copy link

Thanks @JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

@JelleZijlstra JelleZijlstra deleted the howto-setattr branch September 26, 2024 18:50
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 26, 2024
…tion (pythonGH-124617)

This is used for example by threading.local in the stdlib.
(cherry picked from commit 43979fa)

Co-authored-by: Jelle Zijlstra <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 26, 2024
…tion (pythonGH-124617)

This is used for example by threading.local in the stdlib.
(cherry picked from commit 43979fa)

Co-authored-by: Jelle Zijlstra <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 26, 2024

GH-124624 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Sep 26, 2024
@bedevere-app
Copy link

bedevere-app bot commented Sep 26, 2024

GH-124625 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Sep 26, 2024
AlexWaygood pushed a commit that referenced this pull request Sep 26, 2024
Yhg1s pushed a commit that referenced this pull request Sep 26, 2024
… delegation (GH-124617) (#124624)

Programming FAQ: Mention object.__setattr__ as a technique for delegation (GH-124617)

This is used for example by threading.local in the stdlib.
(cherry picked from commit 43979fa)

Co-authored-by: Jelle Zijlstra <[email protected]>
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.

3 participants