[issue32331] Fix socket.type on Linux
STINNER Victor
report at bugs.python.org
Mon Dec 18 17:36:38 EST 2017
STINNER Victor <victor.stinner at gmail.com> added the comment:
The most portable solution seems to getsockopt():
>>> s.getsockopt(socket.SOL_SOCKET, socket.SO_TYPE)
1
But I would prefer to avoid a syscall just to clear flags :-/
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32331>
_______________________________________
More information about the Python-bugs-list
mailing list