Skip to content

Commit eec25e5

Browse files
[3.13] gh-101860: document property.__name__ (GH-123399) (#123428)
(cherry picked from commit 40fff90) Co-authored-by: Bénédikt Tran <[email protected]>
1 parent ada13a8 commit eec25e5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Doc/library/functions.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,13 @@ are always available. They are listed here in alphabetical order.
16931693
.. versionchanged:: 3.5
16941694
The docstrings of property objects are now writeable.
16951695

1696+
.. attribute:: __name__
1697+
1698+
Attribute holding the name of the property. The name of the property
1699+
can be changed at runtime.
1700+
1701+
.. versionadded:: 3.13
1702+
16961703

16971704
.. _func-range:
16981705
.. class:: range(stop)

Doc/whatsnew/3.13.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,9 @@ Other Language Changes
607607
the :mod:`bz2`, :mod:`lzma`, :mod:`tarfile`, and :mod:`zipfile` modules.
608608
(Contributed by Serhiy Storchaka in :gh:`115961`.)
609609

610+
* Add a :attr:`~property.__name__` attribute on :class:`property` objects.
611+
(Contributed by Eugene Toder in :gh:`101860`.)
612+
610613

611614
New Modules
612615
===========

0 commit comments

Comments
 (0)