[Python-Dev] PEP 414

martin at v.loewis.de martin at v.loewis.de
Sat Mar 3 01:49:48 CET 2012


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


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /