STINNER Victor <[email protected]> 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 <[email protected]> <https://bugs.python.org/issue32331> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
