Message223815
> 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(). |
|
Date |
User |
Action |
Args |
2014-07-24 08:01:44 | vstinner | set | recipients:
+ vstinner, pitrou, neologix, python-dev, sbt, pturing |
2014-07-24 08:01:44 | vstinner | set | messageid: <1406188904.63.0.145192666807.issue18643@psf.upfronthosting.co.za> |
2014-07-24 08:01:44 | vstinner | link | issue18643 messages |
2014-07-24 08:01:44 | vstinner | create | |
|