Is there any reason to use malloc over PyMem_Malloc?

I'm reading the documentation for Memory Management in Python C extensions, and as far as I can tell, there doesn't really seem to be much reason to use malloc rather than PyMem_Malloc. Say I want to allocate an array that isn't to be exposed to Python source code and will be stored in an object that will be garbage collected. Is there any reason to use malloc?

8
задан Jason Baker 27 January 2011 в 23:09
поделиться