[Tutor] 'slice', etc

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Dec 14 00:24:14 CET 2013


On 07/12/2013 10:41, spir wrote:
> On 12/07/2013 02:45 AM, Mark Lawrence wrote:
>> The good news is there is a memoryview in Python, see
>> http://docs.python.org/3/library/functions.html#func-memoryview.  The
>> bad news
>> is it doesn't work on strings. See here for the slice object
>> http://docs.python.org/3/library/functions.html#slice.
>
> Thank you, Mark, I'll have a look at memoryview, seems interesting anyway.
>
> Denis
>

I've just remembered that one distinct disadvantage of memoryviews is 
that you can't use them anywhere if you want to do any sorting, as you 
can't compare them :(

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list