From: Travis O. <oli...@ie...> - 2006-08-10 12:55:51
|
Pierre Barbier de Reuille wrote: > Hi, > > in my documentation, the copyswap function in the PyArray_ArrFuncs > structure is supposed to have this signature: > > copyswap (void) (void* dest, void* src, int swap, int itemsize) > > However, in the latest version of NumPy, the signature is: > > copyswap (void) (void*, void*, int, void*) > > My question is: what correspond to the last void* ? > It's only needed for FLEXIBLE arrays (STRING, UNICODE, VOID), then you pass in an array whose ->descr member has the right itemsize. Look in core/src/arratypes for the definitions of the copyswap functions which can be helpful to see if arguments are actually needed. -Travis |