]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-101860: document `property.__name__` (GH-123399) (#123428)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 29 Aug 2024 16:55:56 +0000 (18:55 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Aug 2024 16:55:56 +0000 (09:55 -0700)
(cherry picked from commit 40fff90ae3d46843bb9d27c6a53ef61c861a3bb4)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Doc/library/functions.rst
Doc/whatsnew/3.13.rst

index 850805b262c717cafd7be617c97e31e2983dea1a..98e5be3acf04a5ade49a1587a00bf4a58ce1f312 100644 (file)
@@ -1693,6 +1693,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 6866b820e8647361835059c22945158b107930fd..974260a924c63fea720da73099ed6ed703743249 100644 (file)
@@ -607,6 +607,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
 ===========