[pypy-dev] PyPy Proxy
Hart's Antler
bhartsho at yahoo.com
Mon Jul 26 07:47:02 CEST 2010
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
More information about the Pypy-dev
mailing list