-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
In Python 2 there is only PyFile_FromFile, which accepts a file pointer, whereas in Python 3 there is only PyFile_FromFd, which accepts a file descriptor. To avoid changing legacy code and introducing special cases for both Python versions, I would like to suggest an implementation of PyFile_FromFile for Python 3 that simply forwards to the existing function: with the help of fileno() the file descriptor for a file pointer can be obtained.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels