diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-02-11 17:04:37 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-02-11 17:04:37 (GMT) |
commit | a9cab519656deda9fc3f500489bea1177d155858 (patch) | |
tree | 89f9d7e3dba2c16ed1c1938565d7e9a3ecf8f6ae /Doc | |
parent | b3ce91607af842ab3a4658557ca51c1563332c30 (diff) | |
download | cpython-a9cab519656deda9fc3f500489bea1177d155858.zip cpython-a9cab519656deda9fc3f500489bea1177d155858.tar.gz cpython-a9cab519656deda9fc3f500489bea1177d155858.tar.bz2 |
Issue #4910: PyNumber_Int is deprecated in 3.0.1; will be removed in 3.1.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/number.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/c-api/number.rst b/Doc/c-api/number.rst index e7c5f61..c8f6945 100644 --- a/Doc/c-api/number.rst +++ b/Doc/c-api/number.rst @@ -233,6 +233,12 @@ Number Protocol Returns the *o* converted to an integer object on success, or *NULL* on failure. This is the equivalent of the Python expression ``int(o)``. + .. note:: + + This function is defined in the transitional :file:`intobject.h` + header file. It will be removed completely in Python 3.1. Use + the :cfunc:`PyNumber_Long` function instead. + .. cfunction:: PyObject* PyNumber_Long(PyObject *o) |