[Numpy-discussion] Change of signature for copyswap function ?

Travis Oliphant oliphant.travis at ieee.org
Thu Aug 10 07:55:29 CDT 2006


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





More information about the Numpy-discussion mailing list