[pypy-dev] Newb questions about ext module writing

Lenard Lindstrom len-l at telus.net
Mon Jul 24 06:12:41 CEST 2006


On 23 Jul 2006 at 19:58, Lawrence Oluyede wrote:

> > 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?
> 
> AFAIK one of the reasons of the existence of rctypes and the ext.
> compiler is not to use the ffi library...
> 
Then perhaps the ext. compiler can achieve the same effect as an ffi 
C closure by creating a stub function to call the bound method, which 
is stored in a thread-local variable.

Lenard Lindstrom
<len-l at telus.net>





More information about the Pypy-dev mailing list