Message292702
Amusingly, binding to the empty string produces something different:
>>> s = socket.socket(socket.AF_UNIX)
>>> s.getsockname()
b''
>>> s.bind(b'')
>>> s.getsockname()
b'\x000005d'
while binding to the nul byte string produces the expected result:
>>> s = socket.socket(socket.AF_UNIX)
>>> s.bind(b'\x00')
>>> s.getsockname()
b'\x00' |
|
Date |
User |
Action |
Args |
2017-05-01 21:37:09 | pitrou | set | recipients:
+ pitrou, giampaolo.rodola, neologix |
2017-05-01 21:37:09 | pitrou | set | messageid: <1493674629.12.0.858819927996.issue30205@psf.upfronthosting.co.za> |
2017-05-01 21:37:09 | pitrou | link | issue30205 messages |
2017-05-01 21:37:09 | pitrou | create | |
|