Dropping support for Python 2.4 and 2.5 / supporting Python 3

Gregory Szorc gregory.szorc at gmail.com
Wed May 14 12:20:58 CDT 2014


lib2to3 is really just a generic source code rewriting facility. We could
do things like introduce b'' literals and use 2to3 to remove them so things
would work on 2.4 and 2.5.

But I still contend Python 3 support will be much easier without having to
consider 2.4 and 2.5.


On Wed, May 14, 2014 at 9:11 AM, Sean Farley
<sean.michael.farley at gmail.com>wrote:

>
> Gregory Szorc <gregory.szorc at gmail.com> writes:
>
> > I'd like to start a discussion that results in a clear plan for not
> > supporting old Python versions and also attempts to identify a plan to
> > support Mercurial running on Python 3.
> >
> > Currently, Mercurial supports Python 2.4, 2.5, 2.6, and 2.7. There is
> > some lib2to3 code for converting source code to be Python 3 compliant.
> > But running Mercurial under Python 3 is still riddled with run-time
> > failures (mostly of the str/bytes/unicode sort) and true support is
> > likely a ways off (my toils over the weekend tell me it's really a
> > long ways off).
>
> Is there a lib2.7to2.4 converter?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20140514/e8b62f61/attachment.html>


More information about the Mercurial-devel mailing list