[Python-checkins] python/dist/src/Doc/ref ref3.tex,1.92,1.93

mwh@users.sourceforge.net mwh@users.sourceforge.net
Fri, 19 Jul 2002 08:47:08 -0700


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory usw-pr-cvs1:/tmp/cvs-serv31521/Doc/ref

Modified Files:
	ref3.tex 
Log Message:
A few days ago, Guido said (in the thread "[Python-Dev] Python 
version of PySlice_GetIndicesEx"):

> OK.  Michael, if you want to check in indices(), go ahead.

Then I did what was needed, but didn't check it in.  Here it is.


Index: ref3.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref3.tex,v
retrieving revision 1.92
retrieving revision 1.93
diff -C2 -d -r1.92 -r1.93
*** ref3.tex	20 Jun 2002 06:12:37 -0000	1.92
--- ref3.tex	19 Jul 2002 15:47:06 -0000	1.93
***************
*** 893,896 ****
--- 893,905 ----
    \ttindex{step}}
  
+ Special method: \method{indices} takes an single integer argument
+ \var{length} and computes information about the extended slice that
+ the slice object would describe if applied to a sequence of
+ \var{length}.  It returns a tuple of three integers; respectively
+ these are the \var{start} and \var{stop} indices and the \var{step} or
+ stride length of the slice.  Missing or out-of-bounds indices are
+ handled in a manner consistent with regular slices.
+ \versionadded{2.3}
+ 
  \end{description} % Internal types