Message186499
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. |
|
Date |
User |
Action |
Args |
2013-04-10 14:50:35 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, gvanrossum, pitrou, neologix |
2013-04-10 14:50:35 | giampaolo.rodola | set | messageid: <1365605435.0.0.901053540486.issue17683@psf.upfronthosting.co.za> |
2013-04-10 14:50:34 | giampaolo.rodola | link | issue17683 messages |
2013-04-10 14:50:34 | giampaolo.rodola | create | |
|