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 serhiy.storchaka
Recipients larry, serhiy.storchaka
Date 2020-10-09.19:32:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602271951.8.0.643355348973.issue41985@roundup.psfhosted.org>
In-reply-to
Content
Local converters for file descriptors which uses PyObject_AsFileDescriptor() are defined and used in several files: Modules/fcntlmodule.c, Modules/posixmodule.c, Modules/selectmodule.c, Modules/termios.c.

The proposed PR replaces them all with a global private function _PyLong_FileDescriptor_Converter() and adds corresponding Argument Clinic converter "fildes".

In future it could be used in more places, allowing to pass a file with fileno() method to functions which accept file descriptor.
History
Date User Action Args
2020-10-09 19:32:31serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2020-10-09 19:32:31serhiy.storchakasetmessageid: <1602271951.8.0.643355348973.issue41985@roundup.psfhosted.org>
2020-10-09 19:32:31serhiy.storchakalinkissue41985 messages
2020-10-09 19:32:31serhiy.storchakacreate