[issue32331] Fix socket.type on Linux

STINNER Victor report at bugs.python.org
Mon Dec 18 17:34:53 EST 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

This issue is not specific to Linux. FreeBSD is also affected:

>>> s=socket.socket()
>>> s.type
<SocketKind.SOCK_STREAM: 1>
>>> s.setblocking(False)
>>> s.type
536870913

See for example https://sourceware.org/ml/libc-alpha/2013-08/msg00528.html

----------

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


More information about the Python-bugs-list mailing list