[3.13] gh-101860: document `property.__name__` (GH-123399) (#123428) · python/cpython@eec25e5

2 files changed

lines changed

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)

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

===========