[Python-Dev] PEP 414 - Unicode Literals for Python 3
Lennart Regebro
regebro at gmail.com
Wed Feb 29 07:08:25 CET 2012
On Tue, Feb 28, 2012 at 13:10, Vinay Sajip <vinay_sajip at yahoo.co.uk> wrote:
> We might be at cross purposes here. I don't see how Distribute helps, because
> the use case I'm talking about is not about distributing or installing stuff,
> but iteratively changing and testing code which needs to work on 2.6+, 3.2 and
> 3.3+.
Make sure you can run the tests with python setup.py test, and you're
"in the butter", as we say in Sweden. :-)
> If the 2.x code depends on having u'xxx' literals, then 3.2 testing will
> potentially involve running a fixer on all files in the project every time a
> change is made, writing to a separate directory, or else a fixer which is
> integrated into the editing environment so it knows what changed. This is
> painful
Sure, and distribute does this for you.
http://python3porting.com/2to3.html
//Lennart
More information about the Python-Dev
mailing list