[Python-Dev] PEP 414 - Unicode Literals for Python 3
R. David Murray
rdmurray at bitdance.com
Tue Feb 28 03:04:43 CET 2012
On Mon, 27 Feb 2012 22:11:36 +0000, Armin Ronacher <armin.ronacher at active-4.com> wrote:
> On 2/27/12 9:58 PM, R. David Murray wrote:
> > But the PEP doesn't address the unicode_literals plus str() approach.
> > That is, the rationale currently makes a false claim.
> Which would be exactly what that u() does not do?
The rationale claims there's no way to spell "native string" if you use
unicode_literals, which is not true.
It would be different from u('') in that I would expect that there are
far fewer instances where 'native string' is required than there are
places where unicode strings work (and should therefore be preferred).
This only matters now in order to make the PEP more accurate, but I
think that is a good thing to do.
More information about the Python-Dev