[Python-Dev] unicode and __str__

"Martin v. Löwis" martin at v.loewis.de
Tue Aug 31 06:56:26 CEST 2004


Skip Montanaro wrote:
>     Neil> Shouldn't we be heading to a world where __str__ always returns
>     Neil> unicode objects?
> 
> Which reminds me...  Didn't someone (MAL?) add an experimental configure
> flag or something similar to allow building Python with PyString* ==
> PyUnicode* (or something like that)?  I think the idea was to see what needs
> to be fixed before Python can become 100% Unicode.  Last I recall it was
> lots.

The option is -U, and it causes string literals to be treated as Unicode
objects. Currently, it gets so far as to start the interactive
interpreter.

Regards,
Martin


More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant