Skip to content

Commit 5351773

Browse files
zuopicnixz
andauthored
Update Doc/library/inspect.rst
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 31fdce2 commit 5351773

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Doc/library/inspect.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,12 +577,11 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
577577
do), this is not necessarily the case in general.
578578

579579
.. versionchanged:: 3.8
580-
Now this function reports objects with only a :meth:`~object.__set__` method
580+
This function now reports objects with only a :meth:`~object.__set__` method
581581
as being data descriptors (the presence of :meth:`~object.__get__` is no
582582
longer required for that). Moreover, objects with :meth:`~object.__delete__`,
583583
but not :meth:`~object.__set__`, are now properly recognized as data
584-
descriptors as well (formerly, they were not).
585-
584+
descriptors as well, which was not the case previously.
586585

587586
.. function:: isgetsetdescriptor(object)
588587

0 commit comments

Comments
 (0)