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 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion