[pypy-issue] [issue1018] ones(shape, 'int') and zeros(shape, 'int') doesn't work

Dmitrey tracker at bugs.pypy.org
Tue Jan 24 17:19:18 CET 2012


New submission from Dmitrey <dmitrey15 at ukr.net>:

>>> np.ones([1,2],'int')
array([[1, 1]])
>>>> np.ones([1,2],'int')
Traceback (application-level):
  File "<inline>", line 1 in <module>
    np.ones([1,2],'int')
TypeError: data type not understood

Same issue with zeros instead of ones and 'float' instead of 'int'

----------
messages: 3806
nosy: Dmitrey, pypy-issue
priority: bug
status: unread
title: ones(shape,'int') and zeros(shape,'int') doesn't work

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1018>
________________________________________


More information about the pypy-issue mailing list