Message 240996 - Python tracker

Message240996

Author raulcd
Recipients exarkun, giampaolo.rodola, lekma, neologix, nvetoshkin, pitrou, r.david.murray, raulcd, vstinner
Date 2015-04-14.19:34:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429040081.54.0.775888148204.issue21327@psf.upfronthosting.co.za>
In-reply-to
Content
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>
History
Date User Action Args
2015-04-14 19:34:41raulcdsetrecipients: + raulcd, exarkun, pitrou, vstinner, giampaolo.rodola, r.david.murray, lekma, nvetoshkin, neologix
2015-04-14 19:34:41raulcdsetmessageid: <1429040081.54.0.775888148204.issue21327@psf.upfronthosting.co.za>
2015-04-14 19:34:41raulcdlinkissue21327 messages
2015-04-14 19:34:41raulcdcreate