0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 17:47:13 +01:00

gh-101860: document property.__name__ (GH-123399)

This commit is contained in:
Bénédikt Tran 2024-08-28 16:10:13 +02:00 committed by GitHub
parent be083cee34
commit 40fff90ae3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -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)

View File

@ -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
===========