mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #4910: PyNumber_Int is deprecated in 3.0.1; will be removed in 3.1.
This commit is contained in:
parent
b3ce91607a
commit
a9cab51965
3 changed files with 15 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue