[Python-Dev] unifying str and unicode (original) (raw)
Fredrik Lundh fredrik at pythonware.com
Mon Oct 3 20:37:55 CEST 2005
- Previous message: [Python-Dev] unifying str and unicode
- Next message: [Python-Dev] unifying str and unicode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] unifying str and unicode
- Next message: [Python-Dev] unifying str and unicode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]