[pypy-issue] [issue1000] creating numpypy array from list with None elements

mikefc tracker at bugs.pypy.org
Sun Jan 15 05:35:03 CET 2012


New submission from mikefc <coolbutuseless at gmail.com>:

Creating numpypy array from a list with elements which are None fails on numpypy but 
succeeds on numpy.


=========  CPython & numpy
>>> import numpy as np
>>> np.array([1,None,3], dtype='float32')
array([  1.,  nan,   3.], dtype=float32)

========= pypy & numpypy
>>>> import numpypy as np
>>>> np.array([1,None,3], dtype='float32')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: expected float, got NoneType object

----------
messages: 3706
nosy: mikefc, pypy-issue
priority: bug
release: ???
status: unread
title: creating numpypy array from list with None elements

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


More information about the pypy-issue mailing list