[Python-checkins] CVS: python/dist/src/Doc/ref ref3.tex,1.38.4.4,1.38.4.5

Fred L. Drake python-dev@python.org
Tue, 21 Mar 2000 23:27:07 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Doc/ref
In directory weyr:/home/fdrake/projects/python/Doc-152p2/ref

Modified Files:
      Tag: release152p1-patches
	ref3.tex 
Log Message:

Correct inaccurate (& inconsistent with a later section) description
of handling of negative slice indexes and the parameters passed to the
__getslice__() discipline.

Error reported by Bernhard Herzog <herzog@online.de>.


Index: ref3.tex
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/ref/ref3.tex,v
retrieving revision 1.38.4.4
retrieving revision 1.38.4.5
diff -C2 -r1.38.4.4 -r1.38.4.5
*** ref3.tex	2000/03/16 15:03:36	1.38.4.4
--- ref3.tex	2000/03/22 04:27:04	1.38.4.5
***************
*** 1100,1107 ****
  The returned object should be of the same type as \var{self}.  Note
  that missing \var{i} or \var{j} in the slice expression are replaced
! by zero or \code{sys.maxint}, respectively, and no further
! transformations on the indices is performed.  The interpretation of
! negative indices and indices larger than the length of the sequence is
! up to the method.
  \end{methoddesc}
  
--- 1100,1107 ----
  The returned object should be of the same type as \var{self}.  Note
  that missing \var{i} or \var{j} in the slice expression are replaced
! by zero or \code{sys.maxint}, respectively.  If negative indexes are
! used in the slice, the length of the sequence is added to that index.
! No guarantee is made that indexes adjusted this way are not still
! negative.  Indexes which are too large are not modified.
  \end{methoddesc}