How to write binary data to file and socket

Lee Soin nomadoro at gmail.com
Fri Dec 12 07:11:46 EST 2008


Hello, all!
I'm new to python. In Linux C programming, writing data to file and socket
share the same system call "write". But it seems that only data of string
type can be used for "write" and "send". So how to write binary data to file
and socket?

-- 
Sun Li
Department of Physics
Nanjing University, China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081212/d18be0e9/attachment-0001.html>


More information about the Python-list mailing list