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 giampaolo.rodola
Recipients giampaolo.rodola, gvanrossum, neologix, pitrou
Date 2013-04-10.14:50:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365605435.0.0.901053540486.issue17683@psf.upfronthosting.co.za>
In-reply-to
Content
Note that if we pass bytes to bind(), getsockname() will return str anyway:

>>> s = socket.socket(socket.AF_UNIX)
>>> s.bind(b'hello')
>>> s.getsockname()
'hello'

That said, it seems more consistent to me to return str also in case of abstract namespace. 
As per:
http://blog.eduardofleury.com/archives/2007/09/13
...one is supposed to set only the first byte to null, and the rest of the path is supposed to be a 'plain' string.
History
Date User Action Args
2013-04-10 14:50:35giampaolo.rodolasetrecipients: + giampaolo.rodola, gvanrossum, pitrou, neologix
2013-04-10 14:50:35giampaolo.rodolasetmessageid: <1365605435.0.0.901053540486.issue17683@psf.upfronthosting.co.za>
2013-04-10 14:50:34giampaolo.rodolalinkissue17683 messages
2013-04-10 14:50:34giampaolo.rodolacreate