summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-06-17 09:43:31 (GMT)
committerGeorg Brandl <georg@python.org>2009-06-17 09:43:31 (GMT)
commit476849c185a72d7dec1fd9d1fec5ac7f4e73a9a9 (patch)
tree6b20e493dccec1095642db3cba2d91ceb2edcf36 /Doc/c-api
parent2fcf389e10c66564edec01188c08c43d11549287 (diff)
downloadcpython-476849c185a72d7dec1fd9d1fec5ac7f4e73a9a9.zip
cpython-476849c185a72d7dec1fd9d1fec5ac7f4e73a9a9.tar.gz
cpython-476849c185a72d7dec1fd9d1fec5ac7f4e73a9a9.tar.bz2
#6255: document PyInt_FromSize_t.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/int.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/c-api/int.rst b/Doc/c-api/int.rst
index ef82100..9ff0347 100644
--- a/Doc/c-api/int.rst
+++ b/Doc/c-api/int.rst
@@ -68,6 +68,15 @@ Plain Integer Objects
.. cfunction:: PyObject* PyInt_FromSsize_t(Py_ssize_t ival)
+ Create a new integer object with a value of *ival*. If the value is larger
+ than ``LONG_MAX`` or smaller than ``LONG_MIN``, a long integer object is
+ returned.
+
+ .. versionadded:: 2.5
+
+
+.. cfunction:: PyObject* PyInt_FromSize_t(size_t ival)
+
Create a new integer object with a value of *ival*. If the value exceeds
``LONG_MAX``, a long integer object is returned.