~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/c-api/int.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
.. cfunction:: PyObject* PyInt_FromSsize_t(Py_ssize_t ival)
70
70
 
 
71
   Create a new integer object with a value of *ival*. If the value is larger
 
72
   than ``LONG_MAX`` or smaller than ``LONG_MIN``, a long integer object is
 
73
   returned.
 
74
 
 
75
   .. versionadded:: 2.5
 
76
 
 
77
 
 
78
.. cfunction:: PyObject* PyInt_FromSize_t(size_t ival)
 
79
 
71
80
   Create a new integer object with a value of *ival*. If the value exceeds
72
81
   ``LONG_MAX``, a long integer object is returned.
73
82
 
122
131
   (:const:`LONG_MAX`, as defined in the system header files).
123
132
 
124
133
 
125
 
.. cfunction:: int PyInt_ClearFreeList(void)
 
134
.. cfunction:: int PyInt_ClearFreeList()
126
135
 
127
136
   Clear the integer free list. Return the number of items that could not
128
137
   be freed.