[Numpy-discussion] Question for Travis

Travis E. Oliphant oliphant at enthought.com
Wed Feb 13 22:30:42 EST 2008


Charles R Harris wrote:
> Travis,
>
> I notice that you used PyDataMem_NEW,  PyDimMem_NEW, and friends to 
> allocate memory in the sort routines. Is there a good reason to use 
> these rather than malloc?
Only to allow for the possibility of different allocation routines.   
There is an option to use the Python memory allocators, for example. 

For temporary memory, though malloc and free is fine.

-Travis





More information about the NumPy-Discussion mailing list