[Numpy-discussion] Question for Travis

Travis E. Oliphant oliphant@enthought....
Wed Feb 13 21:30:42 CST 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