Re: How to write binary data to file and socket

2008-12-12 Thread Steve Holden
Lee Soin wrote: > 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 > b

How to write binary data to file and socket

2008-12-12 Thread Lee Soin
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? -- S