This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, serhiy.storchaka
Date 2017-01-04.20:12:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
My test code may seem contrived, but numpy arrays exhibit similar behavior:

>>> a = numpy.array([2, 2])
>>> bytes(a)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: only integer arrays with one element can be converted to an index

Under python 3.5, the result was

>>> bytes(a)
Date User Action Args
2017-01-04 20:12:51belopolskysetrecipients: + belopolsky, serhiy.storchaka
2017-01-04 20:12:51belopolskysetmessageid: <>
2017-01-04 20:12:51belopolskylinkissue29159 messages
2017-01-04 20:12:51belopolskycreate