8000 gh-106016: Support customizing of module attributes access with __setattr__/__delattr__ (PEP 726) by skirpichev · Pull Request #108261 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-106016: Support customizing of module attributes access with __setattr__/__delattr__ (PEP 726) #108261

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

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Mention PEP in docs, like PEP 562
  • Loading branch information
skirpichev committed Feb 25, 2024
commit cd0e4bef01c6b1c43d0fe9b9a63f536eec715266
3 changes: 3 additions & 0 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,9 @@ For a more fine grained customization of the module behavior, one can set the
:pep:`562` - Module __getattr__ and __dir__
Describes the ``__getattr__`` and ``__dir__`` functions on modules.

:pep:`726` - Module __setattr__ and __delattr__
Proposes the ``__setattr__`` and ``__delattr__`` functions on modules.


.. _descriptors:

Expand Down
0