"%s" vs unicode

Martin v. Löwis martin at v.loewis.de
Tue Jan 7 21:25:41 CET 2003


Robin Becker <robin at jessikat.fsnet.co.uk> writes:

> That was considered harmful (although I disagreed) so why is this
> implicit conversion allowed? 

It follows the general principle that, when combining byte strings and
Unicode strings, the byte string will be converted to Unicode, not
vice versa.

Regards,
Martin





More information about the Python-list mailing list