[Numpy-discussion] #882: PyArray_ConvertToCommon and 0 sized sequences

David Cournapeau david@ar.media.kyoto-u.ac...
Thu Aug 28 21:47:27 CDT 2008


Hi,

    The error in #882 looks pretty straightforward:

from numpy import
numarray a = numarray.array(1)
a.choose([])

core dumps because a.choose calls PyArray_ConvertCommonType with a
0-sized array, which is not handled correctly. Should the 0-sized case
be handled in this function, or in PyArray_Choose (the caller of
PyArray_ConvertCommonType) ?

cheers,

David


More information about the Numpy-discussion mailing list