This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients giampaolo.rodola, neologix, pitrou
Date 2017-05-01.21:37:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493674629.12.0.858819927996.issue30205@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2017-05-01 21:37:09pitrousetrecipients: + pitrou, giampaolo.rodola, neologix
2017-05-01 21:37:09pitrousetmessageid: <1493674629.12.0.858819927996.issue30205@psf.upfronthosting.co.za>
2017-05-01 21:37:09pitroulinkissue30205 messages
2017-05-01 21:37:09pitroucreate