]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the description of isdatadescriptor in inspect.rst (#16645)
authorHongWeipeng <961365124@qq.com>
Fri, 15 Nov 2019 21:47:26 +0000 (05:47 +0800)
committerTal Einat <taleinat+github@gmail.com>
Fri, 15 Nov 2019 21:47:26 +0000 (23:47 +0200)
Doc/library/inspect.rst

index f6156a0eb370c1d710ae8296cbda617e9d722064..10f347dd420f314f04411876efc8a3927c54e18e 100644 (file)
@@ -427,7 +427,7 @@ attributes:
 
    Return ``True`` if the object is a data descriptor.
 
-   Data descriptors have both a :attr:`~object.__get__` and a :attr:`~object.__set__` method.
+   Data descriptors have a :attr:`~object.__set__` or a :attr:`~object.__delete__` method.
    Examples are properties (defined in Python), getsets, and members.  The
    latter two are defined in C and there are more specific tests available for
    those types, which is robust across Python implementations.  Typically, data