[issue39685] Python 3.8 regression Socket operation on non-socket

hillpd report at bugs.python.org
Thu May 7 15:32:48 EDT 2020


hillpd <hillpd at gmail.com> added the comment:

Blocking the use of stdin/stdout like this looks intentional. I have added dimaqq and asvetlov for comment.

The python docs [0] indicate that the file descriptor should be a socket:
"The file descriptor should refer to a socket, but this is not checked — subsequent operations on the object may fail if the file descriptor is invalid."

With bpo-35415, the fd is explicitly checked.

[0] https://docs.python.org/3/library/socket.html#socket.fromfd

----------
nosy: +Dima.Tisnek, asvetlov, hillpd

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39685>
_______________________________________


More information about the Python-bugs-list mailing list