Author lemburg
Date 2002-04-27.15:02:58
SpamBayes Score
Marked as misclassified
Logged In: YES 

The idea to rip out the old string only approach was to make
cStringIO more compatible to the file object implementation.

Rather than switching from s# to t#, the cStringIO object
should maintain a binary switch just like the file
object does and then use s# for pseudo files opened
in binary mode (default) and t# for text mode ones.

Note that in any case, Unicode should be explicitly
encoded before writing it to a file. 

Simply switching to t# would cause compatibility 
problems, since a different buffer API would be used
for all input objects.

Date User Action Args
2007-08-23 16:02:13adminlinkissue547537 messages
2007-08-23 16:02:13admincreate