[Python-Dev] PEP 414 - Unicode Literals for Python 3 (original) (raw)
Serhiy Storchaka storchaka at gmail.com
Mon Feb 27 23:38:14 CET 2012
- Previous message: [Python-Dev] PEP 414 - Unicode Literals for Python 3
- Next message: [Python-Dev] PEP 414 - Unicode Literals for Python 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
28.02.12 00:11, Armin Ronacher написав(ла):
On 2/27/12 9:58 PM, R. David Murray wrote:
But the PEP doesn't address the unicodeliterals plus str() approach. That is, the rationale currently makes a false claim. Which would be exactly what that u() does not do?
No.
u() is trivial for Python 3 and relatively expensive (and doubtful for non-ascii literals) for Python 2, unicode_literals plus str() is trivial for Python 3 and cheap for Python 2.
Text strings are natural and prevalent, but "natural" strings are domain-specific and archaic.
- Previous message: [Python-Dev] PEP 414 - Unicode Literals for Python 3
- Next message: [Python-Dev] PEP 414 - Unicode Literals for Python 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]