[Python-checkins] CVS: python/dist/src/Doc/lib libfuncs.tex,1.82,1.83

Tim Peters tim_one@users.sourceforge.net
Mon, 03 Sep 2001 01:35:42 -0700


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

Modified Files:
	libfuncs.tex 
Log Message:
New restriction on pow(x, y, z):  If z is not None, x and y must be of
integer types, and y must be >= 0.  See discussion at
http://sf.net/tracker/index.php?func=detail&aid=457066&group_id=5470&atid=105470


Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** libfuncs.tex	2001/08/27 20:02:16	1.82
--- libfuncs.tex	2001/09/03 08:35:40	1.83
***************
*** 119,123 ****
  \end{funcdesc}
  
! \begin{funcdesc}{compile}{string, filename, kind\optional{, 
                            flags\optional{, dont_inherit}}}
    Compile the \var{string} into a code object.  Code objects can be
--- 119,123 ----
  \end{funcdesc}
  
! \begin{funcdesc}{compile}{string, filename, kind\optional{,
                            flags\optional{, dont_inherit}}}
    Compile the \var{string} into a code object.  Code objects can be
***************
*** 409,413 ****
  Return a dictionary representing the current local symbol table.
  \strong{Warning:} The contents of this dictionary should not be
! modified; changes may not affect the values of local variables used by 
  the interpreter.
  \end{funcdesc}
--- 409,413 ----
  Return a dictionary representing the current local symbol table.
  \strong{Warning:} The contents of this dictionary should not be
! modified; changes may not affect the values of local variables used by
  the interpreter.
  \end{funcdesc}
***************
*** 479,483 ****
    raised.
  
!   If \var{mode} is omitted, it defaults to \code{'r'}.  When opening a 
    binary file, you should append \code{'b'} to the \var{mode} value
    for improved portability.  (It's useful even on systems which don't
--- 479,483 ----
    raised.
  
!   If \var{mode} is omitted, it defaults to \code{'r'}.  When opening a
    binary file, you should append \code{'b'} to the \var{mode} value
    for improved portability.  (It's useful even on systems which don't
***************
*** 520,525 ****
    delivered.  For example, \code{10**2} returns \code{100}, but
    \code{10**-2} returns \code{0.01}.  (This last feature was added in
!   Python 2.2.  In Python 2.1 and before, a negative second argument
!   would raise an exception.)
  \end{funcdesc}
  
--- 520,531 ----
    delivered.  For example, \code{10**2} returns \code{100}, but
    \code{10**-2} returns \code{0.01}.  (This last feature was added in
!   Python 2.2.  In Python 2.1 and before, if both arguments were of integer
!   types and the second argument was negative, an exception was raised.)
!   If the second argument is negative, the third argument must be omitted. 
!   If \var{z} is present, \var{x} and \var{y} must be of integer types,
!   and \var{y} must be non-negative.  (This restriction was added in
!   Python 2.2.  In Python 2.1 and before, floating 3-argument \code{pow()}
!   returned platform-dependent results depending on floating-point
!   rounding accidents.)
  \end{funcdesc}
  
***************
*** 732,736 ****
  corresponding symbol table are undefined.\footnote{
    In the current implementation, local variable bindings cannot
!   normally be affected this way, but variables retrieved from 
    other scopes (such as modules) can be.  This may change.}
  \end{funcdesc}
--- 738,742 ----
  corresponding symbol table are undefined.\footnote{
    In the current implementation, local variable bindings cannot
!   normally be affected this way, but variables retrieved from
    other scopes (such as modules) can be.  This may change.}
  \end{funcdesc}