[Python-Dev] Unicode as argument for 8-bit format strings
M.-A. Lemburg
mal@lemburg.com
Fri, 07 Apr 2000 13:57:41 +0200
There has been a bug report about the treatment of Unicode
objects together with 8-bit format strings. The current
implementation converts the Unicode object to UTF-8 and then
inserts this value in place of the %s....
I'm inclined to change this to have '...%s...' % u'abc'
return u'...abc...' since this is just another case of
coercing data to the "bigger" type to avoid information loss.
Thoughts ?
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/