"%s" vs unicode

Martin v. Löwis martin at v.loewis.de
Tue Jan 7 15:25:41 EST 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