summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/number.rst11
1 files changed, 4 insertions, 7 deletions
diff --git a/Doc/c-api/number.rst b/Doc/c-api/number.rst
index bb72119..d11e3b1 100644
--- a/Doc/c-api/number.rst
+++ b/Doc/c-api/number.rst
@@ -230,19 +230,16 @@ Number Protocol
.. cfunction:: PyObject* PyNumber_Int(PyObject *o)
- .. index:: builtin: int
-
- Returns the *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 ``int(o)``.
+ Returns the *o* converted to an integer object on success, or *NULL* on
+ failure. This is the equivalent of the Python expression ``int(o)``.
.. cfunction:: PyObject* PyNumber_Long(PyObject *o)
- .. index:: builtin: long
+ .. index:: builtin: int
Returns the *o* converted to an integer object on success, or *NULL* on
- failure. This is the equivalent of the Python expression ``long(o)``.
+ failure. This is the equivalent of the Python expression ``int(o)``.
.. cfunction:: PyObject* PyNumber_Float(PyObject *o)