Raúl Cumplido added the comment: Added patch that solves issue, but I am not sure this is what you expect. If you think this is the expected behavior I will add docs and tests: >>> sock = socket.socket(type=socket.SOCK_STREAM | socket.SOCK_NONBLOCK) >>> sock.type 2049 >>> socket.get_socket_type(sock) <SocketKind.SOCK_STREAM: 1> >>> sock = socket.socket(type=socket.SOCK_STREAM | socket.SOCK_NONBLOCK >>> |socket.SOCK_CLOEXEC) >>> sock.type 526337 >>> socket.get_socket_type(sock) <SocketKind.SOCK_STREAM: 1>
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21327> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com