[Numpy-discussion] #882: PyArray_ConvertToCommon and 0 sized sequences
David Cournapeau
david at ar.media.kyoto-u.ac.jp
Thu Aug 28 22:47:27 EDT 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