Skip to content

Commit

Permalink
Fix the description of isdatadescriptor in inspect.rst (python#16645)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongweipeng authored and shihai1991 committed Jan 31, 2020
1 parent 3d27ae0 commit 6538a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/inspect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6538a28

Please sign in to comment.