[issue34507] Add path expansion interpolation in pyvenv.cfg home key

2018-08-26 Thread Lior Cohen
New submission from Lior Cohen : When working with venv virtual environment, python.exe finds its base_prefix and base_exec_prefix by the home key in the pyvenv.cfg file. If one edits this file with $xyz (or %xyz% in windows), it is not not resolved. The reason of replacing the absolute path

[issue32400] inspect.isdatadescriptor false negative

2017-12-21 Thread Lior Cohen
Change by Lior Cohen <chnl...@gmail.com>: -- title: inspect.isdatadescriptor fasle negative -> inspect.isdatadescriptor false negative ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32400] inspect.isdatadescriptor fasle negative

2017-12-21 Thread Lior Cohen
New submission from Lior Cohen <chnl...@gmail.com>: 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__

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

2017-12-11 Thread Lior Cohen
Lior Cohen <chnl...@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 ``` t