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

Fred L. Drake python-dev@python.org
Thu, 17 Aug 2000 20:12:45 -0700


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

Modified Files:
	libstdtypes.tex 
Log Message:

As pointed out by Denis S. Otkidach <den@analyt.chem.msu.ru>, xrange()
returns an xrange object, not a range object, despite the name of the
source file they're implemented in.

In the list of comparison operators, list != before <>, since <> is
described as obsolescent.


Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** libstdtypes.tex	2000/08/14 15:37:59	1.30
--- libstdtypes.tex	2000/08/18 03:12:38	1.31
***************
*** 106,111 ****
    \lineiii{>=}{greater than or equal}{}
    \lineiii{==}{equal}{}
-   \lineiii{<>}{not equal}{(1)}
    \lineiii{!=}{not equal}{(1)}
    \lineiii{is}{object identity}{}
    \lineiii{is not}{negated object identity}{}
--- 106,111 ----
    \lineiii{>=}{greater than or equal}{}
    \lineiii{==}{equal}{}
    \lineiii{!=}{not equal}{(1)}
+   \lineiii{<>}{not equal}{(1)}
    \lineiii{is}{object identity}{}
    \lineiii{is not}{negated object identity}{}
***************
*** 314,318 ****
  
  There are six sequence types: strings, Unicode strings, lists,
! tuples, buffers, and ranges.
  
  Strings literals are written in single or double quotes:
--- 314,318 ----
  
  There are six sequence types: strings, Unicode strings, lists,
! tuples, buffers, and xrange objects.
  
  Strings literals are written in single or double quotes:
***************
*** 328,334 ****
  item tuple must have a trailing comma, e.g., \code{(d,)}.  Buffers are
  not directly support by Python syntax, but can created by calling the
! builtin function \function{buffer()}.\bifuncindex{buffer}  Ranges are
! similar to buffers in that there is no specific syntax to create them,
! but they are created using the \function{xrange()}
  function.\bifuncindex{xrange}
  \indexii{sequence}{types}
--- 328,334 ----
  item tuple must have a trailing comma, e.g., \code{(d,)}.  Buffers are
  not directly support by Python syntax, but can created by calling the
! builtin function \function{buffer()}.\bifuncindex{buffer}  XRanges
! objects are similar to buffers in that there is no specific syntax to
! create them, but they are created using the \function{xrange()}
  function.\bifuncindex{xrange}
  \indexii{sequence}{types}
***************
*** 338,341 ****
--- 338,342 ----
  \indexii{tuple}{type}
  \indexii{list}{type}
+ \indexii{xrange}{type}
  
  Sequence types support the following operations.  The \samp{in} and
***************
*** 639,654 ****
  
  
! \subsubsection{Range Type \label{typesseq-range}}
  
! The range\indexii{range}{type} type is an immutable sequence which is
! commonly used for looping.  The advantage of the range type is that a
! range object will always take the same amount of memory, no matter the
  size of the range it represents.  There are no consistent performance
  advantages.
  
! Range objects behave like tuples, and offer a single method:
  
! \begin{methoddesc}[range]{tolist}{}
!   Return a list object which represents the same values as the range
    object.
  \end{methoddesc}
--- 640,655 ----
  
  
! \subsubsection{XRange Type \label{typesseq-xrange}}
  
! The xrange\indexii{xrange}{type} type is an immutable sequence which is
! commonly used for looping.  The advantage of the xrange type is that an
! xrange object will always take the same amount of memory, no matter the
  size of the range it represents.  There are no consistent performance
  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}
***************
*** 1113,1118 ****
  
  See the \citetitle[../ref/ref.html]{Python Reference Manual} for this
! information.  It describes code objects, stack frame objects,
! traceback objects, and slice objects.
  
  
--- 1114,1119 ----
  
  See the \citetitle[../ref/ref.html]{Python Reference Manual} for this
! information.  It describes stack frame objects, traceback objects, and
! slice objects.