[Python-Dev] Unicode as argument for 8-bit format strings

M.-A. Lemburg mal@lemburg.com
Sat, 08 Apr 2000 00:42:01 +0200


"M.-A. Lemburg" wrote:
> 
> Guido van Rossum wrote:
> >
> > > No problem... :-) Its a simple fix: once %s in an 8-bit string
> > > sees a Unicode object it will stop processing the string and
> > > restart using the unicode formatting algorithm.
> >
> > But the earlier items might already have incurred side effects
> > (e.g. when rendering user code)...  Unless you save all the strings
> > you got for reuse, which seems a pain as well.
> 
> Oh well... I don't think it's worth getting this 100% right.

Never mind -- I have a patch ready now, that doesn't restart,
but instead uses what has already been formatted and then
continues in Unicode mode.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/