[Python-Dev] PEP 414 - Unicode Literals for Python 3
Antoine Pitrou
solipsis at pitrou.net
Tue Feb 28 13:19:35 CET 2012
Le mardi 28 février 2012 à 22:14 +1000, Nick Coghlan a écrit :
> If you're using separate branches, then your Python 2 code isn't being
> made forward compatible with Python 3. Yes, it avoids making your
> Python 2 code uglier, but it means maintaining two branches in
> parallel until you drop Python 2 support.
IMO, maintaining two branches shouldn't be much more work than
maintaining hacks so that a single codebase works with two different
programming languages.
> You've once again raised the
> barrier to entry: either people contribute two patches, or they accept
> that their patch may languish until someone else writes the patch for
> the other version.
Again that's wrong. If you cleverly use 2to3 to port between branches,
patches only have to be written against the 2.x version.
Regards
Antoine.
More information about the Python-Dev
mailing list