[Python-Dev] PEP 414 (original) (raw)
martin at v.loewis.de martin at v.loewis.de
Sat Mar 3 01:49:48 CET 2012
- Previous message: [Python-Dev] PEP 414
- Next message: [Python-Dev] PEP 414
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Zitat von Lennart Regebro <regebro at gmail.com>:
Just my 2 cents on the PEP rewrite:
u'' support is not just if you want to write code that doesn't use 2to3. Even when you use 2to3 it is useful to be able to flag strings s binary, unicode or "native".
How so? In the Python 3 code, the u"" prefix would not appear, even if appears in the original source, as 2to3 eliminates it.
So you surely need the u"" prefix to distinguish binary, unicode, or native strings in your source - but with 2to3, the PEP 414 change is unnecessary.
Regards, Martin
- Previous message: [Python-Dev] PEP 414
- Next message: [Python-Dev] PEP 414
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]