STINNER Victor <victor.stin...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32331> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com