[pypy-issue] [issue1009] numpypy ndarray bug "TypeError: 'flatiter' object is not subscriptable"

Dmitrey tracker at bugs.pypy.org
Wed Jan 18 19:30:31 CET 2012


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

This bug prevents me to port numpy.diag(), creating walkaround here seems to be
bad idea.
>>> a=N.ones((4,4))
>>> a.flat[2]
1.0
>>>> a=N.ones((4,4))
>>>> a.flat[2]
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: 'flatiter' object is not subscriptable

----------
messages: 3724
nosy: Dmitrey, pypy-issue
priority: bug
status: unread
title: numpypy ndarray bug "TypeError: 'flatiter' object is not subscriptable"

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


More information about the pypy-issue mailing list