summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorHongWeipeng <961365124@qq.com>2019-11-15 21:47:26 (GMT)
committerTal Einat <taleinat+github@gmail.com>2019-11-15 21:47:26 (GMT)
commit84f2528d4836f9e8f80f8354cb26341ef7ef0a1b (patch)
treed5d1b76a39afe14df1b9492cc46aff68240eb2f4 /Doc
parent73cdb0c6b2c3861e034004cdc57be5e726876078 (diff)
downloadcpython-84f2528d4836f9e8f80f8354cb26341ef7ef0a1b.zip
cpython-84f2528d4836f9e8f80f8354cb26341ef7ef0a1b.tar.gz
cpython-84f2528d4836f9e8f80f8354cb26341ef7ef0a1b.tar.bz2
Fix the description of isdatadescriptor in inspect.rst (#16645)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/inspect.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index f6156a0..10f347d 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