Py3 status

Dirkjan Ochtman dirkjan at ochtman.nl
Tue Jan 26 04:51:00 CST 2010


On Tue, Jan 26, 2010 at 10:48, Arc Riley <arcriley at gmail.com> wrote:
> What is the status of that work, and where can it be found?

http://bitbucket.org/djc/hg-py3k-mq/

>> Can Py2.4 -> Py2.6 compatibility be retained while working on Py3 support?
>
> Yes.  Other projects are doing it now just fine, there are many strategies.
>
> distutils has built-in support for running 2to3 as it installs a package,
> for example, and a PY3 flag could be passed to the compiler to switch the
> macros in a header from old names to new names easily enough.

I think we'll need to support 2.4-3.2 from a single codebase if we
want to do this. The SoC project was supposed to go in that direction,
but didn't get far enough, though I think there's some usable stuff in
the patch queue. Some obvious cleanup stuff that also works in 2.4 has
already been upstreamed into hg crew/main.

This is one of the things I've been thinking about working on,
probably at the sprint or at PyCon. I saw some neat tricks in argparse
that should help doing it.

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list