Author vstinner
Recipients josh.r, neologix, njs, pitrou, skrah, vstinner
Date 2014-04-16.02:49:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In numpy, I found the two following functions:

 * Allocates memory for array data.
void* PyDataMem_NEW(size_t size);

 * Allocates zeroed memory for array data.
void* PyDataMem_NEW_ZEROED(size_t size, size_t elsize);

So it looks like it needs two size_t parameters. Prototype of the C function calloc():

void *calloc(size_t nmemb, size_t size);

I agree that it's better to provide the same prototype than calloc().
Date User Action Args
2014-04-16 02:49:46vstinnersetrecipients: + vstinner, pitrou, njs, skrah, neologix, josh.r
2014-04-16 02:49:46vstinnersetmessageid: <>
2014-04-16 02:49:46vstinnerlinkissue21233 messages
2014-04-16 02:49:45vstinnercreate