Fix the description of isdatadescriptor in inspect.rst (GH-16645)

(cherry picked from commit 84f2528d48)

Co-authored-by: HongWeipeng <961365124@qq.com>
This commit is contained in:
Miss Islington (bot) 2019-11-15 13:54:33 -08:00 committed by GitHub
parent a4be5aae6e
commit 0b634dfc88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ attributes:
Return ``True`` if the object is a data descriptor. 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 Examples are properties (defined in Python), getsets, and members. The
latter two are defined in C and there are more specific tests available for latter two are defined in C and there are more specific tests available for
those types, which is robust across Python implementations. Typically, data those types, which is robust across Python implementations. Typically, data