[Python-checkins] r73463 - python/trunk/Doc/c-api/int.rst
georg.brandl
python-checkins at python.org
Wed Jun 17 11:43:31 CEST 2009
Author: georg.brandl
Date: Wed Jun 17 11:43:31 2009
New Revision: 73463
Log:
#6255: document PyInt_FromSize_t.
Modified:
python/trunk/Doc/c-api/int.rst
Modified: python/trunk/Doc/c-api/int.rst
==============================================================================
--- python/trunk/Doc/c-api/int.rst (original)
+++ python/trunk/Doc/c-api/int.rst Wed Jun 17 11:43:31 2009
@@ -68,6 +68,15 @@
.. 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.
More information about the Python-checkins
mailing list