diff options
author | Walter Dörwald <walter@livinglogic.de> | 2002-11-19 20:49:15 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2002-11-19 20:49:15 (GMT) |
commit | f171540ab8d816a996c34db3f6aa4bf9cf147fba (patch) | |
tree | 001d1ff0bdea449058218d2debf6d6f8dbbcb220 /Doc/api/abstract.tex | |
parent | 7a3bae410df3dd0032509b97077d0c4d98276fdd (diff) | |
download | cpython-f171540ab8d816a996c34db3f6aa4bf9cf147fba.zip cpython-f171540ab8d816a996c34db3f6aa4bf9cf147fba.tar.gz cpython-f171540ab8d816a996c34db3f6aa4bf9cf147fba.tar.bz2 |
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
Diffstat (limited to 'Doc/api/abstract.tex')
-rw-r--r-- | Doc/api/abstract.tex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/api/abstract.tex b/Doc/api/abstract.tex index 6bf96b2..c5939b2 100644 --- a/Doc/api/abstract.tex +++ b/Doc/api/abstract.tex @@ -650,8 +650,9 @@ determination. \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} + \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} \begin{cfuncdesc}{PyObject*}{PyNumber_Long}{PyObject *o} |