[Python-checkins] Fix the description of isdatadescriptor in inspect.rst (GH-16645)
Miss Islington (bot)
webhook-mailer at python.org
Fri Nov 15 16:54:40 EST 2019
https://github.com/python/cpython/commit/0b634dfc88d99e34dd871f724b37cc6d58a76e30
commit: 0b634dfc88d99e34dd871f724b37cc6d58a76e30
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-11-15T13:54:33-08:00
summary:
Fix the description of isdatadescriptor in inspect.rst (GH-16645)
(cherry picked from commit 84f2528d4836f9e8f80f8354cb26341ef7ef0a1b)
Co-authored-by: HongWeipeng <961365124 at qq.com>
files:
M Doc/library/inspect.rst
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index f6156a0eb370c..10f347dd420f3 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
More information about the Python-checkins
mailing list