Call to scipy.sparse.coo_matrix
fails when passed Cython typed memoryviews
#5123
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.sparse
Milestone
Under Python 3, when calling
scipy.sparse.coo_matrix
from a Cython extension module and passing Cython typed memoryviews as arguments, the call raises aValueError
. What follows is an example of the relevant calling code:Produces the following traceback
The problem has been traced to
scipy.sparse.sputils.isintlike
. There is a call toint
inside atry
block where onlyTypeError
is caught and handled. In Python 2 callingint
on a memoryview produced aTypeError
, but in Python 3 it produces aValueError
.The problem has been reproduced with the current development version of Scipy:
0.17.0.dev0+fa26145
andPython 3.4.3+
.The text was updated successfully, but these errors were encountered: