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

Fred L. Drake python-dev@python.org
Thu, 17 Aug 2000 19:42:16 -0700


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory slayer.i.sourceforge.net:/tmp/cvs-serv1610/ref

Modified Files:
	ref3.tex 
Log Message:

Adjust the way __getslice__() is marked as deprecated; this will also
stand out more.


Index: ref3.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref3.tex,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -r1.47 -r1.48
*** ref3.tex	2000/08/17 22:37:31	1.47
--- ref3.tex	2000/08/18 02:42:14	1.48
***************
*** 1046,1050 ****
  compatibility, the method \method{__getslice__()} (see below) can also be
  defined to handle simple, but not extended slices.) It is also recommended
! that mappings provide methods \method{keys()}, \method{values()},
  \method{items()}, \method{has_key()}, \method{get()}, \method{clear()},
  \method{copy()}, and \method{update()} behaving similar to those for
--- 1046,1050 ----
  compatibility, the method \method{__getslice__()} (see below) can also be
  defined to handle simple, but not extended slices.) It is also recommended
! that mappings provide the methods \method{keys()}, \method{values()},
  \method{items()}, \method{has_key()}, \method{get()}, \method{clear()},
  \method{copy()}, and \method{update()} behaving similar to those for
***************
*** 1133,1136 ****
--- 1133,1138 ----
  
  \begin{methoddesc}[sequence object]{__getslice__}{self, i, j}
+ \deprecated{2.0}{Support slice objects as parameters to the
+ \method{__getitem__()} method.}
  Called to implement evaluation of \code{\var{self}[\var{i}:\var{j}]}.
  The returned object should be of the same type as \var{self}.  Note
***************
*** 1143,1147 ****
  negative.  Indexes which are greater than the length of the sequence
  are not modified.
! This method is deprecated. If no \method{__getslice__()} is found, a slice
  object is created instead, and passed to \method{__getitem__()} instead.
  \end{methoddesc}
--- 1145,1149 ----
  negative.  Indexes which are greater than the length of the sequence
  are not modified.
! If no \method{__getslice__()} is found, a slice
  object is created instead, and passed to \method{__getitem__()} instead.
  \end{methoddesc}