Sockets

jepler at unpythonic.net jepler at unpythonic.net
Thu Apr 7 22:52:11 EDT 2005


Python strings always carry their length, and can have embedded NULs.
    s.write("\0\1\2\3")
should write 4 bytes to the socket 's'.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050407/73e81236/attachment.sig>


More information about the Python-list mailing list