From 616db398294d7d984bb84696dcccd325eb5f30ed Mon Sep 17 00:00:00 2001 From: hongweipeng <961365124@qq.com> Date: Tue, 8 Oct 2019 17:13:40 +0800 Subject: [PATCH] Fix the description of isdatadescriptor in inspect.rst --- Doc/library/inspect.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 2a71201a80b2cb..9c2ecdf6b1ca30 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -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