[issue26103] Contradiction in definition of "data descriptor" between (dotted lookup behavior/datamodel documentation) and (inspect lib/descriptor how-to)

11 Dec
2017
11 Dec
'17
11:24 p.m.
Lior Cohen chnlior@gmail.com added the comment:
Joining @Serhiy Storchaka last question. Is the __get__ method existance is a must be a data descriptor?
According to the C implementation in descrobject.h ``` #define PyDescr_IsData(d) (Py_TYPE(d)->tp_descr_set != NULL) #endif ``` the answer is No. Does this C code reflect the true definition?
---------- nosy: +chnlior
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue26103 _______________________________________
1997
Age (days ago)
1997
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lior Cohen