sending binary data over sockets

thorley at gmail.com thorley at gmail.com
Mon Jul 3 17:15:23 EDT 2006


> Python strings are binary data and can contain
>   - in oppostion to e.g. C-strings - null-bytes.
>
> So it is perfectly alright to send "only" strings over a socket.

Agreed. I wasn't trying to imply it was 'wrong' just that the receiving
application wouldn't interpret strings correctly.




More information about the Python-list mailing list