[Tutor] 'slice', etc

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Dec 7 02:59:18 CET 2013


[Once again I didn't actually write what Joel is replying to :( ]

On 07/12/2013 01:49, Joel Goldstick wrote:
> On Fri, Dec 6, 2013 at 8:45 PM, Mark Lawrence <breamoreboy at yahoo.co.uk
>
>         Hum, we are not talking of the same topic, apparently. I mean
>         this, from
>         the library ref, builtin funcs:
>         http://docs.python.org/3.3/__library/functions.html#slice
>         <http://docs.python.org/3.3/library/functions.html#slice>:
>
>            slice(start, stop[, step])
>
>
> I'm totally confused by this.  What is this a slice of? there is no
> object on which to apply the slice indices?
>

That's the point, it's just a slice, an object in its own right, as 
indicated in the link above.

-- 
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