[Python-Dev] unifying str and unicode
Fredrik Lundh
fredrik at pythonware.com
Mon Oct 3 20:37:55 CEST 2005
Antoine Pitrou wrote:
> > Under the default encoding (and quite a few other encodings), that's true for
> > plain ascii strings and Unicode strings.
>
> If I have an unicode string containing legal characters greater than
> 0x7F, and I pass it to a function which converts it to str, the
> conversion fails.
so? if it does that, it's not unicode safe. what's that has to do with
my argument (which is that you can safely mix ascii strings and unicode
strings, because that's how things were designed).
> Here is an example so that you really understand.
I wrote the unicode type. I do understand how it works.
</F>
More information about the Python-Dev
mailing list