durusmail: quixote-users: Unicode support for Quixote 2
Unicode support for Quixote 2
2004-09-03
2004-09-03
2004-09-03
2004-09-03
Quixote / mod_python - test workflow?
2004-09-04
Re: R: [Quixote-users] Quixote / mod_python - test workflow?
single word attributes in html.htmltag()
2004-09-05
Re: single word attributes in html.htmltag()
2004-09-06
2004-09-04
2004-09-08
Python Best of Breed web app snippets / small webapps
2004-09-08
2004-09-10
2004-09-09
2004-09-09
2004-09-09
2004-09-09
Unicode support for Quixote 2
Oleg Broytmann
2004-09-09
On Thu, Sep 09, 2004 at 02:00:03PM -0400, Neil Schemenauer wrote:
> Sorry, that statement was not quite accurate.  Example code is
> better.
>
> class Foo:
>     def __str__(self):
>         return u'\u1234'
>
> u'%s' % Foo() # doesn't work in 2.3 but works in 2.4

   Ah, I see. In any case I consider this (returning non-ASCII string
from __str__) as a very bad style (yes, I am reading python-dev).

Oleg.
--
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

reply