diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-01-10 22:14:33 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-01-10 22:14:33 (GMT) |
commit | d746768d3a085a214bd35123df500e791afcf610 (patch) | |
tree | 156b1c00a4301230f2a3b3f908fcb474322e136c /Doc/c-api | |
parent | 30bf122841669591b9368bcf1ed079729eb837b3 (diff) | |
download | cpython-d746768d3a085a214bd35123df500e791afcf610.zip cpython-d746768d3a085a214bd35123df500e791afcf610.tar.gz cpython-d746768d3a085a214bd35123df500e791afcf610.tar.bz2 |
Issue #4910: replace "long" with "int" in docstring for __long__ slot and
in documentation for PyNumber_Long.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/number.rst | 11 |
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) |