[pypy-dev] python 2 and python 3 sharing an interpreter?

Amaury Forgeot d'Arc amauryfa at gmail.com
Fri Dec 9 16:50:23 CET 2011


2011/12/9 Armin Rigo <arigo at tunes.org>

> Hi Amaury,
>
> On Fri, Dec 9, 2011 at 14:36, Amaury Forgeot d'Arc <amauryfa at gmail.com>
> wrote:
> >> Getting two completely separate interpreters in one process is trivial
> >> in PyPy
> >
> > Well, not so trivial; I played with this idea last evening.
> > A few lines in targetpypystandalone.py to install a new objspace,
> > and tried to translate...
>
> No, I meant in this case something else: getting two *different*
> interpreters from different sources.  Like PyPy and Pyrolog, or like
> what you would get if you imported in the same Python both the
> "default" and the "py3k" branch (with the proper amount of import
> hacks to keep them from conflicting).


I was thinking of two object spaces with different config options,
like "config.objspace.std.py3k",
if we take the other route and have a single branch to support both
versions.


-- 
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20111209/6aaaf402/attachment.html>


More information about the pypy-dev mailing list