[pypy-issue] [issue1391] cannot pass None values if dtype=='d'

Antonio Cuni tracker at bugs.pypy.org
Sat Feb 9 11:09:57 CET 2013


New submission from Antonio Cuni <anto.cuni at gmail.com>:

Python 2.7.3 (default, Aug  1 2012, 05:14:39) 
>>> import numpy
>>> numpy.array([1.0, 2.0, None], dtype='d')
array([  1.,   2.,  nan])


Python 2.7.3 (64f878febd11, Jan 26 2013, 02:00:18)
[PyPy 2.0.0-beta1 with GCC 4.6.3] on linux2
>>>> numpypy.array([1.0, 2.0, None], dtype='d')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: expected float, got NoneType object

----------
messages: 5280
nosy: pypy-issue
priority: bug
status: unread
title: cannot pass None values if dtype=='d'

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


More information about the pypy-issue mailing list