Author belopolsky
Recipients belopolsky, serhiy.storchaka
Date 2017-01-04.20:12:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483560771.56.0.453820022342.issue29159@psf.upfronthosting.co.za>
In-reply-to
Content
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)
b'\x02\x00\x00\x00\x02\x00\x00\x00'
History
Date User Action Args
2017-01-04 20:12:51belopolskysetrecipients: + belopolsky, serhiy.storchaka
2017-01-04 20:12:51belopolskysetmessageid: <1483560771.56.0.453820022342.issue29159@psf.upfronthosting.co.za>
2017-01-04 20:12:51belopolskylinkissue29159 messages
2017-01-04 20:12:51belopolskycreate