[pypy-dev] rffi feature request

Simon Burton simon at arrowtheory.com
Fri Aug 3 21:14:13 CEST 2007


I would like to expose some functions as external
symbols when i build a .so

def foo(i, j):
    return i+j

foo._expose_ = [rffi.INT, rffi.INT]

This is basically so I can write cpython extension modules in rpython.
(and manually doing ref counting (etc.) on the cpython objects.)

Simon.



More information about the Pypy-dev mailing list