[Pyrex] How does pyrex manage memory that is malloced, realloced, etc.

Nathaniel Haggard natester at gmail.com
Sat Jun 25 01:14:05 CEST 2005


An extension that declares a pointer to a struct

cdef class A:
       struct1 *s

Also contains a method that wraps a C function that allocates memory.

def init_struc1:
      self.s = c_init()

Is the memory assigned to self.s safe from overwrites?  How does pyrex
handle the allocated memory?


Nate



More information about the Pyrex mailing list