Author loewis
Recipients amaury.forgeotdarc, donmez, gvanrossum, loewis
Date 2007-12-20.20:45:37
SpamBayes Score 0.00129421
Marked as misclassified No
Message-id <1198183538.57.0.716183121901.issue1609@psf.upfronthosting.co.za>
In-reply-to
Content
> print "iiii".encode("iso-8859-9").upper().decode("iso-8859-9")
> does not

Please get your types right. "iiii" is a byte string (in Python 2.x).
encode: unicode -> string
decode: string -> unicode

That you still can apply .encode to the byte string is a bug/pit fall in
Python 2.x, which gets fixed in 3.x (by only supporting .encode on the
unicode type).
History
Date User Action Args
2007-12-20 20:45:38loewissetspambayes_score: 0.00129421 -> 0.00129421
recipients: + loewis, gvanrossum, amaury.forgeotdarc, donmez
2007-12-20 20:45:38loewissetspambayes_score: 0.00129421 -> 0.00129421
messageid: <1198183538.57.0.716183121901.issue1609@psf.upfronthosting.co.za>
2007-12-20 20:45:38loewislinkissue1609 messages
2007-12-20 20:45:37loewiscreate