[Python-Dev] readd u'' literal support in 3.3?

Antoine Pitrou solipsis at pitrou.net
Fri Dec 9 01:56:00 CET 2011


On Thu, 8 Dec 2011 19:52:28 -0500
Glyph <glyph at twistedmatrix.com> wrote:
> Zooming back in to the actual issue this thread is about, I think the u""-vs-"" issue is a bit of a red herring, because the _real_ problem here is that 2to3 is slow and buggy and so migration efforts are starting to work around it, and therefore want to run the same code on 3.x and all the way back to 2.5.
> 
> In my opinion, effort should be spent on optimizing the suggested migration tools and getting them to work properly, not twiddling the syntax so that it's marginally easier to avoid them.

Instead of modifying 2.x code and running 2to3 time after time on it,
you can use 2to3 on unmodified 2.x code and fix the generated 3.x code.
With proper use of branches and a DVCS, merging later 2.x changes
should be mostly painless.
(at least it works on https://bitbucket.org/pitrou/t3k/)

Regards

Antoine.




More information about the Python-Dev mailing list