[pypy-dev] PyPy JIT & C extensions, greenlet

Andy angelflow at yahoo.com
Mon Sep 13 07:21:03 CEST 2010

--- On Fri, 9/10/10, Armin Rigo <arigo at tunes.org> wrote:

> On Thu, Sep 9, 2010 at 8:04 PM, Andy <angelflow at yahoo.com>
> wrote:
> > Is there any plan to make PyPy JIT work with greenlet
> and C extensions?
> > If so when may that be available?
> As far as I can tell it works already.  Just download
> (http://buildbot.pypy.org/nightly/trunk/)
> or build yourself a
> stackless version of PyPy; it should contain "cpyext",
> which means
> that it should support C extension modules.
> Note that callbacks from C to Python do not play nicely
> with stackless
> features: if you try e.g. to switch to another greenlet
> while you are
> in such a callback, you get a fatal error.  Hopefully
> that's a rare
> case, but still, it should at least be improved to give you
> a regular
> catchable Python exception.

Thanks Armin.

Does that mean PyPy will not work with greenlet/gevent/etc?

Is there any plan to make PyPy support greenlet? Or is there some fundamental obstacle that would prevent it from doing so?



More information about the Pypy-dev mailing list