This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chnlior
Recipients chnlior, docs@python
Date 2017-12-21.18:57:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
According to the c code in Include/descrobject.h

#define PyDescr_IsData(d) (Py_TYPE(d)->tp_descr_set != NULL)

and according to the "data model" chapter,
a data descriptor is an object who has __set__ and /or __delete__.

the "inspect.isdatadescriptor" checks for existence of __get__ and __set__ which IMHO is wrong. an object with __set__/__delete__ only will return falsely False (should be True).  

This is related to @Serhiy Storchaka comment in issue 26103 opened by @Aaron Hall.
Date User Action Args
2017-12-21 18:57:05chnliorsetrecipients: + chnlior, docs@python
2017-12-21 18:57:04chnliorsetmessageid: <>
2017-12-21 18:57:04chnliorlinkissue32400 messages
2017-12-21 18:57:04chnliorcreate