[Python-checkins] CVS: python/dist/src/Doc/lib libstdtypes.tex,1.61,1.62

Guido van Rossum gvanrossum@users.sourceforge.net
Thu, 05 Jul 2001 06:27:50 -0700


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

Modified Files:
	libstdtypes.tex 
Log Message:
Rip out the fancy behaviors of xrange that nobody uses: repeat, slice,
contains, tolist(), and the start/stop/step attributes.  This includes
removing the 4th ('repeat') argument to PyRange_New().


Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -r1.61 -r1.62
*** libstdtypes.tex	2001/06/26 20:32:59	1.61
--- libstdtypes.tex	2001/07/05 13:27:48	1.62
***************
*** 776,785 ****
  advantages.
  
! XRange objects behave like tuples, and offer a single method:
! 
! \begin{methoddesc}[xrange]{tolist}{}
!   Return a list object which represents the same values as the xrange
!   object.
! \end{methoddesc}
  
  
--- 776,781 ----
  advantages.
  
! XRange objects have very little behavior: they only support indexing
! and the \function{len()} function.