[issue6329] Fix iteration for memoryviews

2009-06-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Applied in r73531 and r73532. -- status: open -> closed versions: +Python 2.7 ___ Python tracker ___

[issue6329] Fix iteration for memoryviews

2009-06-23 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file14347/mview3.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue6329] Fix iteration for memoryviews

2009-06-23 Thread R. David Murray
R. David Murray added the comment: Given that the original code being copied is correct, it looks to me like the revision is fine. The memoryview tests pass for me with the patch applied. -- assignee: r.david.murray -> rhettinger resolution: -> accepted __

[issue6329] Fix iteration for memoryviews

2009-06-23 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file14346/mview2.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue6329] Fix iteration for memoryviews

2009-06-23 Thread Raymond Hettinger
New submission from Raymond Hettinger : Despite being a sequence (with both __getitem__ and __len__ defined), memoryview objects were not recognized as being iterable. The docs say that all such sequences are iterable, so this is a bug. >>> b = b'abcde' >>> m = memoryview(b) >>> list(m) Traceba