#6255: document PyInt_FromSize_t.

This commit is contained in:
Georg Brandl 2009-06-17 09:43:31 +00:00
parent 2fcf389e10
commit 476849c185
1 changed files with 9 additions and 0 deletions

View File

@ -68,6 +68,15 @@ Plain Integer Objects
.. cfunction:: PyObject* PyInt_FromSsize_t(Py_ssize_t ival) .. 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 Create a new integer object with a value of *ival*. If the value exceeds
``LONG_MAX``, a long integer object is returned. ``LONG_MAX``, a long integer object is returned.