]> granicus.if.org Git - python/commitdiff
#6255: document PyInt_FromSize_t.
authorGeorg Brandl <georg@python.org>
Wed, 17 Jun 2009 09:43:31 +0000 (09:43 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 17 Jun 2009 09:43:31 +0000 (09:43 +0000)
Doc/c-api/int.rst

index ef82100324c7f5ee23160e3956e0e233e753672a..9ff0347d05c71df891e23c463b932ef801d6a937 100644 (file)
@@ -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.