[Python-Dev] PEP 414 - Unicode Literals for Python 3 (original) (raw)
R. David Murray rdmurray at bitdance.com
Mon Feb 27 22:58:27 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 ]
On Mon, 27 Feb 2012 16:16:39 -0500, Chris McDonough <chrism at plope.com> wrote:
On Mon, 2012-02-27 at 21:03 +0000, Vinay Sajip wrote: > Yes, but making a backward step like reintroducing u'' just to make things a > tiny little bit sucky doesn't seem to me to be worth it, because then >= 3.3 is > different to 3.2 and earlier. Armin's suggestion of an install-time fixer is > analogous to running 2to3 after every change, if you're trying to support 3.2 > and 3.3+ at the same time, isn't it? You can't just edit-and-test, which to me > is the main benefit of a single codebase.
The downsides of a unicodeliterals future import are spelled out in the PEP: http://www.python.org/dev/peps/pep-0414/#rationale-and-goals
But the PEP doesn't address the unicode_literals plus str() approach. That is, the rationale currently makes a false claim.
--David
- 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 ]