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

Attachment: pgpYpor1iHZad.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to