[Python-Dev] PEP 414 (original) (raw)
Serhiy Storchaka storchaka at gmail.com
Sat Mar 3 08:53:24 CET 2012
- Previous message: [Python-Dev] PEP 414
- Next message: [Python-Dev] PEP 414
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
03.03.12 08:20, Lennart Regebro написав(ла):
But you are right, it isn't necessary. I was thinking of 3to2, actually. That was one of the objections I had to the usefulness of 3to2, there is no way to make the distinction between unicode and native strings. (The u'' prefix hence actually makes 3to2 a realistic option, and that's good.)
2to3 should recognize the str(string_literal) (or nstr(), or native(), etc) as a native string and does not add prefix "u" to it. And you have to explicitly specify these tips.
- Previous message: [Python-Dev] PEP 414
- Next message: [Python-Dev] PEP 414
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]