mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Issue #4910: replace "long" with "int" in docstring for __long__ slot and
in documentation for PyNumber_Long.
This commit is contained in:
parent
30bf122841
commit
d746768d3a
3 changed files with 7 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue