Index: libstdtypes.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v retrieving revision 1.133 diff -c -r1.133 libstdtypes.tex *** libstdtypes.tex 12 Sep 2003 00:02:37 -0000 1.133 --- libstdtypes.tex 15 Sep 2003 23:22:08 -0000 *************** *** 521,538 **** \item[(4)] The slice of \var{s} from \var{i} to \var{j} is defined as the sequence of items with index \var{k} such that \code{\var{i} <= \var{k} < \var{j}}. If \var{i} or \var{j} is greater than ! \code{len(\var{s})}, use \code{len(\var{s})}. If \var{i} is omitted, ! use \code{0}. If \var{j} is omitted, use \code{len(\var{s})}. If ! \var{i} is greater than or equal to \var{j}, the slice is empty. \item[(5)] The slice of \var{s} from \var{i} to \var{j} with step \var{k} is defined as the sequence of items with index \code{\var{x} = \var{i} + \var{n}*\var{k}} such that \code{0} \code{<=} \var{n} \code{<} \code{abs(i-j)}. If \var{i} or \var{j} is greater than \code{len(\var{s})}, use \code{len(\var{s})}. If ! \var{i} or \var{j} are omitted then they become ``end'' values ! (which end depends on the sign of \var{k}). Note, \var{k} cannot ! be zero. \end{description} --- 521,540 ---- \item[(4)] The slice of \var{s} from \var{i} to \var{j} is defined as the sequence of items with index \var{k} such that \code{\var{i} <= \var{k} < \var{j}}. If \var{i} or \var{j} is greater than ! \code{len(\var{s})}, use \code{len(\var{s})}. If \var{i} is omitted ! or is the value None, use \code{0}. If \var{j} is omitted or is the ! value None, use \code{len(\var{s})}. If \var{i} is greater than or ! equal to \var{j}, the slice is empty. \item[(5)] The slice of \var{s} from \var{i} to \var{j} with step \var{k} is defined as the sequence of items with index \code{\var{x} = \var{i} + \var{n}*\var{k}} such that \code{0} \code{<=} \var{n} \code{<} \code{abs(i-j)}. If \var{i} or \var{j} is greater than \code{len(\var{s})}, use \code{len(\var{s})}. If ! \var{i} or \var{j} are omitted or the value None they become ! ``end'' values (which end depends on the sign of \var{k}). ! Note, \var{k} cannot be zero. If \var{k} is the value None, it is ! treated as a step of 1 by default. \end{description}