New issue 2088: automatic casting does not work in linalg https://bitbucket.org/pypy/pypy/issues/2088/automatic-casting-does-not-work-in-linalg
lesshaste: In ipython the following works ipython Python 2.7.6 (default, Jun 22 2015, 17:58:13) Type "copyright", "credits" or "license" for more information. IPython 1.2.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: import numpy In [2]: A = [[1,0],[0,1]] In [3]: numpy.linalg.det(A) Out[3]: 1.0 but in Python 2.7.9 (2.6.0+dfsg-1~ppa0+ubuntu14.04, Jun 08 2015, 14:48:00) with numpy from July 20 it doesn't. pypy-numpy/bin/pypy Python 2.7.9 (2.6.0+dfsg-1~ppa0+ubuntu14.04, Jun 08 2015, 14:48:00) [PyPy 2.6.0 with GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>> import numpy >>>> A = [[1,0],[0,1]] >>>> numpy.linalg.det(A) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/user/pypy-numpy/site-packages/numpy/linalg/linalg.py", line 1734, in det return _umath_linalg.det(a, signature=signature).astype(result_t) TypeError: input dtype [=i8,None,] did not match any known dtypes [=f4,=f4,=f8,=f8,=c8,=f4,=c16,=f8] _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue