summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>2024-08-28 14:10:13 (GMT)
committerGitHub <noreply@github.com>2024-08-28 14:10:13 (GMT)
commit40fff90ae3d46843bb9d27c6a53ef61c861a3bb4 (patch)
treea8de72c76bdbd93e7720d0194a66faec5cdbaf14 /Doc
parentbe083cee34d62ae860acac70dfa078fc5c96ade3 (diff)
downloadcpython-40fff90ae3d46843bb9d27c6a53ef61c861a3bb4.zip
cpython-40fff90ae3d46843bb9d27c6a53ef61c861a3bb4.tar.gz
cpython-40fff90ae3d46843bb9d27c6a53ef61c861a3bb4.tar.bz2
gh-101860: document `property.__name__` (GH-123399)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/functions.rst7
-rw-r--r--Doc/whatsnew/3.13.rst3
2 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 2c64937..8b51b56 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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)
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index 60d0c70..af271fb 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -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
===========