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

Fred L. Drake python-dev@python.org
Wed, 22 Mar 2000 13:25:20 -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:

Clarify & expand the comments on __getslice__() further, based on
comments from 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.5
retrieving revision 1.38.4.6
diff -C2 -r1.38.4.5 -r1.38.4.6
*** ref3.tex	2000/03/22 04:27:04	1.38.4.5
--- ref3.tex	2000/03/22 18:25:17	1.38.4.6
***************
*** 1102,1107 ****
  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}
  
--- 1102,1110 ----
  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.
+ If the instance does not implement the \method{__len__()} method, an
+ \exception{AttributeError} is raised.
  No guarantee is made that indexes adjusted this way are not still
! negative.  Indexes which are greater than the length of the sequence
! are not modified.
  \end{methoddesc}