[Python-checkins] python/dist/src/Doc/ref ref3.tex,1.87,1.88

rhettinger@sourceforge.net rhettinger@sourceforge.net
Sat, 11 May 2002 20:09:28 -0700


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

Modified Files:
	ref3.tex 
Log Message:
Closes SF patch: 552468.
Type class unification invalidated the statement:  x.__getitem__[i] is not equivalent to x[i].


Index: ref3.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref3.tex,v
retrieving revision 1.87
retrieving revision 1.88
diff -C2 -d -r1.87 -r1.88
*** ref3.tex	16 Apr 2002 02:03:05 -0000	1.87
--- ref3.tex	12 May 2002 03:09:25 -0000	1.88
***************
*** 898,905 ****
  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__()}}
  
--- 898,903 ----
  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__()}}