Skip to content

Commit 40fff90

Browse files
authored
gh-101860: document property.__name__ (GH-123399)
1 parent be083ce commit 40fff90

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
@@ -1700,6 +1700,13 @@ are always available. They are listed here in alphabetical order.
17001700
.. versionchanged:: 3.5
17011701
The docstrings of property objects are now writeable.
17021702

1703+
.. attribute:: __name__
1704+
1705+
Attribute holding the name of the property. The name of the property
1706+
can be changed at runtime.
1707+
1708+
.. versionadded:: 3.13
1709+
17031710

17041711
.. _func-range:
17051712
.. class:: range(stop)

Doc/whatsnew/3.13.rst

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

623+
* Add a :attr:`~property.__name__` attribute on :class:`property` objects.
624+
(Contributed by Eugene Toder in :gh:`101860`.)
625+
623626

624627
New Modules
625628
===========

0 commit comments

Comments
 (0)