[Python-Dev] str() on memoryview of bytearray failing on py3k

Mark Hammond skippy.hammond at gmail.com
Sun Feb 8 00:13:50 CET 2009


Hi all,
   I'm not sure if the following is a bug I should report or simply an 
artifact of the implementation and/or simply the way things work on py3k:

% py30 -c "str(memoryview(bytearray((1,2,3))))"
Traceback (most recent call last):
   File "<string>", line 1, in <module>
TypeError: __str__ returned non-string (type bytes)

Cheers,

Mark


More information about the Python-Dev mailing list