mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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>
This commit is contained in:
parent
5d54436574
commit
8a01fd7b9b
3 changed files with 17 additions and 0 deletions
|
@ -970,6 +970,7 @@ A class object can be called (see above) to yield a class instance (see below).
|
|||
single: __doc__ (class attribute)
|
||||
single: __annotations__ (class attribute)
|
||||
single: __type_params__ (class attribute)
|
||||
single: __static_attributes__ (class attribute)
|
||||
|
||||
Special attributes:
|
||||
|
||||
|
@ -1000,6 +1001,10 @@ Special attributes:
|
|||
A tuple containing the :ref:`type parameters <type-params>` of
|
||||
a :ref:`generic class <generic-classes>`.
|
||||
|
||||
:attr:`~class.__static_attributes__`
|
||||
A tuple containing names of attributes of this class which are accessed
|
||||
through ``self.X`` from any function in its body.
|
||||
|
||||
|
||||
Class instances
|
||||
---------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue