STINNER Victor added the comment: > I don't remember why I added a specific check on the proto parameter.
I tested on Windows: socket.socket(proto=1) raises an OSError(WSAEPROTONOSUPPORT): """ WSAEPROTONOSUPPORT 10043: Protocol not supported. The requested protocol has not been configured into the system, or no implementation for it exists. For example, a socket call requests a SOCK_DGRAM socket, but specifies a stream protocol. """ Since the error comes directly at socket.socket(), we drop drop the explicit test in socketpair(). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18643> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com