[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>
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>

More information about the pypy-issue mailing list