Re: Python 3.3 can't sort memoryviews as they're unorderable

2012-10-22 Thread Ian Kelly
On Mon, Oct 22, 2012 at 4:58 PM, Mark Lawrence wrote: >> http://docs.python.org/py3k/library/stdtypes.html#typememoryview only >> gives examples of equality comparisons and there was nothing that I >> could see in PEP3118 to explain the rationale behind the lack of other >> comparisons. What have

Re: Python 3.3 can't sort memoryviews as they're unorderable

2012-10-22 Thread Mark Lawrence
On 21/10/2012 12:24, Mark Lawrence wrote: http://docs.python.org/dev/whatsnew/3.3.html states "memoryview comparisons now use the logical structure of the operands and compare all array elements by value". So I'd have thought that you should be able to compare them and hence sort them, but this

Python 3.3 can't sort memoryviews as they're unorderable

2012-10-21 Thread Mark Lawrence
http://docs.python.org/dev/whatsnew/3.3.html states "memoryview comparisons now use the logical structure of the operands and compare all array elements by value". So I'd have thought that you should be able to compare them and hence sort them, but this is the state of play. Python 3.3.0 (v3.