[pypy-dev] PyPy Proxy

Maciej Fijalkowski fijall at gmail.com
Tue Jul 27 11:43:50 CEST 2010


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