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 Claudiu.Popa
Recipients Claudiu.Popa
Date 2013-09-23.16:27:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Hello. The following seems a little weird:

Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit (Intel)] on win32
>>> m = memoryview(b'123')
>>> list(m[::-1])
[51, 50, 49]
>>> list(reversed(m))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: object of type 'memoryview' has no len()

The attached patch allows `reversed` to be called with memoryviews and it could potentially fix issue18690.
Date User Action Args
2013-09-23 16:27:16Claudiu.Popasetrecipients: + Claudiu.Popa
2013-09-23 16:27:16Claudiu.Popasetmessageid: <>
2013-09-23 16:27:16Claudiu.Popalinkissue19078 messages
2013-09-23 16:27:16Claudiu.Popacreate