[pypy-dev] PyPy Proxy

Hart's Antler bhartsho at yahoo.com
Tue Jul 27 14:43:47 CEST 2010

Hi Maciej,

Yes it comes with its own test, just save the file from pastebin and run it.  You should two gtk windows popup and a pygame window that draws a circle.

I have a new version with proxy support for one module from Blender2.5 (bpy.ops); note that pygtk, ode, and pygame are broken in this version because i had to change some things so it can run in Blender's embedded python3.1


--- On Tue, 7/27/10, Maciej Fijalkowski <fijall at gmail.com> wrote:

> From: Maciej Fijalkowski <fijall at gmail.com>
> Subject: Re: [pypy-dev] PyPy Proxy
> To: "Hart's Antler" <bhartsho at yahoo.com>
> Cc: pypy-dev at codespeak.net
> Date: Tuesday, 27 July, 2010, 2:43 AM
> Hey.
> Does it come with tests? Or how can I look how is it
> working?
> On Mon, Jul 26, 2010 at 7:47 AM, Hart's Antler <bhartsho at yahoo.com>
> wrote:
> > The code from PyPyGTK has been generalized so that it
> can work with PyGame, and PyODE.  Function calls are
> improved so that different arg types can be accepted by
> defining custom wrappers per function.  Custom wrappers can
> also be made for the return values, so different types can
> be handled as well (it seems that rpython restricts what can
> be returned from a function to the same types).  Proxy
> objects can move back and forth from CPython to RPython.
>  The wrappers for pygtk, pyode, and pygame are by no means
> complete, but some basic tests are working.  Callbacks are
> limited to quoted lambdas, but it could be improved.
> >
> > http://pastebin.com/rWEfgMSN
> >
> > I had seen the other proxy method before, but found
> few examples, how does it work, from Rpython or the PyPy
> interpreter?
> > http://morepypy.blogspot.com/2009/11/using-cpython-extension-modules-with.html
> >
> >
> >
> > _______________________________________________
> > pypy-dev at codespeak.net
> > http://codespeak.net/mailman/listinfo/pypy-dev
> >

More information about the Pypy-dev mailing list