[Python-checkins] python/dist/src/Doc/api abstract.tex,1.19,1.20
doerwalter@users.sourceforge.net
doerwalter@users.sourceforge.net
Tue, 19 Nov 2002 12:49:45 -0800
Update of /cvsroot/python/python/dist/src/Doc/api
In directory sc8-pr-cvs1:/tmp/cvs-serv17074/Doc/api
Modified Files:
abstract.tex
Log Message:
Change int() so that passing a string, unicode, float or long argument
that is outside the integer range no longer raises OverflowError, but
returns a long object instead.
This fixes SF bug http://www.python.org/sf/635115
Index: abstract.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/abstract.tex,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** abstract.tex 8 Sep 2002 04:39:28 -0000 1.19
--- abstract.tex 19 Nov 2002 20:49:12 -0000 1.20
***************
*** 651,656 ****
\begin{cfuncdesc}{PyObject*}{PyNumber_Int}{PyObject *o}
Returns the \var{o} converted to an integer object on success, or
! \NULL{} on failure. This is the equivalent of the Python expression
! \samp{int(\var{o})}.\bifuncindex{int}
\end{cfuncdesc}
--- 651,657 ----
\begin{cfuncdesc}{PyObject*}{PyNumber_Int}{PyObject *o}
Returns the \var{o} converted to an integer object on success, or
! \NULL{} on failure. If the argument is outside the integer range
! a long object will be returned instead. This is the equivalent
! of the Python expression \samp{int(\var{o})}.\bifuncindex{int}
\end{cfuncdesc}