Movatterモバイル変換
[0]ホーム
[Python-Dev] PEP 414 - Unicode Literals for Python 3
R. David Murrayrdmurray 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 useunicode_literals, which is not true.It would be different from u('') in that I would expect that there arefar fewer instances where 'native string' is required than there areplaces where unicode strings work (and should therefore be preferred).This only matters now in order to make the PEP more accurate, but Ithink that is a good thing to do.--David
More information about the Python-Devmailing list
[8]ページ先頭