[Python-checkins] python/dist/src/Doc/ref ref3.tex,1.82.4.1,1.82.4.2

rhettinger@sourceforge.net rhettinger@sourceforge.net
Mon, 13 May 2002 00:55:31 -0700


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

Modified Files:
      Tag: release22-maint
	ref3.tex 
Log Message:
Backport ver 1.88 correction noting that lists now support .__getitem__().
Closes SF bug 548874 and patch 552468.


Index: ref3.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref3.tex,v
retrieving revision 1.82.4.1
retrieving revision 1.82.4.2
diff -C2 -d -r1.82.4.1 -r1.82.4.2
*** ref3.tex	16 Apr 2002 02:03:31 -0000	1.82.4.1
--- ref3.tex	13 May 2002 07:55:24 -0000	1.82.4.2
***************
*** 883,890 ****
  a method named \method{__getitem__()}, and \code{x} is an instance of
  this class, then \code{x[i]} is equivalent to
! \code{x.__getitem__(i)}.  (The reverse is not true --- if \code{x} is
! a list object, \code{x.__getitem__(i)} is not equivalent to
! \code{x[i]}.)  Except where mentioned, attempts to execute an
! operation raise an exception when no appropriate method is defined.
  \withsubitem{(mapping object method)}{\ttindex{__getitem__()}}
  
--- 883,888 ----
  a method named \method{__getitem__()}, and \code{x} is an instance of
  this class, then \code{x[i]} is equivalent to
! \code{x.__getitem__(i)}.  Except where mentioned, attempts to execute
! an operation raise an exception when no appropriate method is defined.
  \withsubitem{(mapping object method)}{\ttindex{__getitem__()}}