diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2024-04-19 10:57:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 10:57:31 (GMT) |
commit | 8a01fd7b9bb27c7d284e2f0152713a8619fd34a3 (patch) | |
tree | a1a2dc3f29660f562be57a08e75c8719a8aa65ce /Doc/whatsnew | |
parent | 5d544365742a117027747306e2d4473f3b73d921 (diff) | |
download | cpython-8a01fd7b9bb27c7d284e2f0152713a8619fd34a3.zip cpython-8a01fd7b9bb27c7d284e2f0152713a8619fd34a3.tar.gz cpython-8a01fd7b9bb27c7d284e2f0152713a8619fd34a3.tar.bz2 |
gh-115775: Add whatsnew entry about __static_attributes__ (GH-117909)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.13.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 0ea27a0..cf9853f 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -115,6 +115,11 @@ Improved Error Messages ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ TypeError: split() got an unexpected keyword argument 'max_split'. Did you mean 'maxsplit'? +* Classes have a new :attr:`~class.__static_attributes__` attribute, populated by the compiler, + with a tuple of names of attributes of this class which are accessed + through ``self.X`` from any function in its body. (Contributed by Irit Katriel + in :gh:`115775`.) + Incremental Garbage Collection ------------------------------ |