[I18n-sig] Re: [Python-Dev] Pre-PEP: Python Character Model
Barry Scott
barry@scottb.demon.co.uk
Sun, 18 Feb 2001 13:01:06 -0000
> Here's a thought. How about BinaryFile/BinarySocket/ByteArray which
> do
Files and sockets often contain a both string and binary data.
Having StringFile and BinaryFile seems the wrong split. I'd
think being able to write string and binary data is more useful
for example having methods on file and socket like file.writetext,
file.writebinary. NOw I can use the writetext to write the HTTP
headers and writebinary to write the JPEG image say.
BArry