[Numpy-discussion] why type(array(1).tolist()) is int?

Travis E. Oliphant oliphant@enthought....
Wed Oct 1 08:58:32 CDT 2008

dmitrey wrote:
> let me also note that list(array((1))) returns
> Traceback (innermost last):
>  File "<stdin>", line 1, in <module>
> TypeError: iteration over a 0-d array
> D.
This is expected.   0-d arrays are currently not iterable.


More information about the Numpy-discussion mailing list