[pypy-issue] Issue #1870: 'matrix' doesn't work at all on numpypy right now (pypy/pypy)

glyph issues-reply at bitbucket.org
Mon Sep 22 19:18:14 CEST 2014


New issue 1870: 'matrix' doesn't work at all on numpypy right now
https://bitbucket.org/pypy/pypy/issue/1870/matrix-doesnt-work-at-all-on-numpypy-right

glyph:

CPython:

    >>> from numpy import matrix
    >>> matrix([1])
    matrix([[1]])

PyPy:

    >>> matrix([1])
    Traceback (most recent call last):
      File "<input>", line 1, in <module>
      File ".../numpy/matrixlib/defmatrix.py", line 282, in __new__
        if not (order or arr.flags.contiguous):
    AttributeError: 'ndarray' object has no attribute 'flags'





More information about the pypy-issue mailing list