[Pyrex] How do I use the memory blocks getting by the malloc() function in python?

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Oct 11 00:38:09 CEST 2010


刘振海 wrote:
> If I use the 
> malloc() function to get a pointer in the C extention module ,How to let 
> python to use the memory blocks?

Create an extension type that wraps the memory block and provide
methods for doing whatever you want Python code to be able to
do with it.

-- 
Greg




More information about the Pyrex mailing list