"Luke Paireepinart" <[EMAIL PROTECTED]> wrote > well, some experimentation leads me to believe this is the syntax > for > list slicing:
The referemnce link I poosted gives the exact syntax plus this description: ------------------ The semantics for a simple slicing are as follows. The primary must evaluate to a sequence object. The lower and upper bound expressions, if present, must evaluate to plain integers; defaults are zero and the sys.maxint, respectively. If either bound is negative, the sequence's length is added to it. The slicing now selects all items with index k such that i <= k < j where i and j are the specified lower and upper bounds. This may be an empty sequence. It is not an error if i or j lie outside the range of valid indexes (such items don't exist so they aren't selected). -------------------- For s[i:j:k} where the primary is i, the secondary j and the index k... HTH, -- Alan Gauld Author of the Learn to Program web site http://www.freenetpages.co.uk/hp/alan.gauld _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
