Author georg.brandl
Recipients
Date 2005-07-14.08:34:10
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=1188172

I agree with you that writing Unicode objects to a binary
file should raise an exception, but with the 'et#' format
string, 8-bit string objects should pass through file.write
unrecoded.

About your second comment: Yes, codecs is one way to do it,
but then I think that the encoding handling for print should
be ripped out, too. After all, that's what many people
complain about: "print unistr" works, while
"sys.stdout.write(unistr)" does not. As the comment below
about bug 1099364 shows, this shows up in various locations.

If this is rejected, file.write() shouldn't accept Unicode
anymore, and print should behave the same way.
History
Date User Action Args
2007-08-23 15:43:12adminlinkissue1214889 messages
2007-08-23 15:43:12admincreate