]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101860: document `property.__name__` (GH-123399)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Wed, 28 Aug 2024 14:10:13 +0000 (16:10 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Aug 2024 14:10:13 +0000 (16:10 +0200)
Doc/library/functions.rst
Doc/whatsnew/3.13.rst

index 2c649376efee7011b5d1980cab710b658d4a7d4b..8b51b56da0771ba5109901025204cc953b78a1c9 100644 (file)
@@ -1700,6 +1700,13 @@ are always available.  They are listed here in alphabetical order.
    .. versionchanged:: 3.5
       The docstrings of property objects are now writeable.
 
+   .. attribute:: __name__
+
+      Attribute holding the name of the property. The name of the property
+      can be changed at runtime.
+
+      .. versionadded:: 3.13
+
 
 .. _func-range:
 .. class:: range(stop)
index 60d0c7090193f3f18a9cc6d0aa3a484445014d84..af271fbf4b28acb3c03c275c6d556e795e51e9f0 100644 (file)
@@ -620,6 +620,9 @@ Other Language Changes
   the :mod:`bz2`, :mod:`lzma`, :mod:`tarfile`, and :mod:`zipfile` modules.
   (Contributed by Serhiy Storchaka in :gh:`115961`.)
 
+* Add a :attr:`~property.__name__` attribute on :class:`property` objects.
+  (Contributed by Eugene Toder in :gh:`101860`.)
+
 
 New Modules
 ===========