summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/api/abstract.tex5
-rw-r--r--Doc/lib/libfuncs.tex2
2 files changed, 5 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}
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index f6b01d1..9fab9ba 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -507,6 +507,8 @@ def my_import(name):
Otherwise, the argument may be a plain or
long integer or a floating point number. Conversion of floating
point numbers to integers truncates (towards zero).
+ If the argument is outside the integer range a long object will
+ be returned instead.
\end{funcdesc}
\begin{funcdesc}{intern}{string}