[pypy-dev] Newb questions about ext module writing
Lenard Lindstrom
len-l at telus.net
Sun Jul 23 19:56:06 CEST 2006
On 22 Jul 2006 at 12:24, Armin Rigo wrote:
> Hi,
>
> On Fri, Jul 21, 2006 at 06:24:19PM -0700, Lenard Lindstrom wrote:
> > In ctypes that is easy: use a bound method as the callback. Does that
> > even work in rctypes?
>
> I'm afraid not, and it's not obvious how this would be compiled to C
> code, given that there is no kind of closure in ANSI C.
>
I just brought it up as it is one more thing to consider when
converting a ctypes Python module to rctypes. But could rctypes use
ffi when the callback is a bound method?
Lenard Lindstrom
<len-l at telus.net>
More information about the pypy-dev
mailing list