
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.ht...

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@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.
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.ht...
_______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev

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 http://pastebin.com/TsYNqd8p --- On Tue, 7/27/10, Maciej Fijalkowski <fijall@gmail.com> wrote:
From: Maciej Fijalkowski <fijall@gmail.com> Subject: Re: [pypy-dev] PyPy Proxy To: "Hart's Antler" <bhartsho@yahoo.com> Cc: pypy-dev@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?
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
On Mon, Jul 26, 2010 at 7:47 AM, Hart's Antler <bhartsho@yahoo.com> wrote: limited to quoted lambdas, but it could be improved.
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.ht...
_______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev
participants (2)
-
Hart's Antler
-
Maciej Fijalkowski