https://github.com/python/cpython/commit/eec25e5d47c3602cc8fd08bc55869e96f5ab62a1
commit: eec25e5d47c3602cc8fd08bc55869e96f5ab62a1
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2024-08-29T09:55:56-07:00
summary:

[3.13] gh-101860: document `property.__name__` (GH-123399) (#123428)

(cherry picked from commit 40fff90ae3d46843bb9d27c6a53ef61c861a3bb4)

Co-authored-by: Bénédikt Tran <[email protected]>

files:
M Doc/library/functions.rst
M Doc/whatsnew/3.13.rst

diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 850805b262c717..98e5be3acf04a5 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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)
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index 6866b820e86473..974260a924c63f 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -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
 ===========

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to