diff options
author | Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> | 2009-04-25 19:44:55 (GMT) |
---|---|---|
committer | Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> | 2009-04-25 19:44:55 (GMT) |
commit | 691f5f17eea1fe5e78aff45b5f268e89fae004de (patch) | |
tree | 380cb2d05d75f7c3385d02bd2aead2f714b36d28 /Doc/c-api | |
parent | 353712405862f9a696568c77097360ec3c298509 (diff) | |
download | cpython-691f5f17eea1fe5e78aff45b5f268e89fae004de.zip cpython-691f5f17eea1fe5e78aff45b5f268e89fae004de.tar.gz cpython-691f5f17eea1fe5e78aff45b5f268e89fae004de.tar.bz2 |
Issue #4129: More documentation pointers about int -> Py_ssize_t.
Also fix up the documentation for PyObject_GC_Resize(). It seems that since
it first got documented, the documentation was actually for
_PyObject_GC_Resize().
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/gcsupport.rst | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/c-api/gcsupport.rst b/Doc/c-api/gcsupport.rst index cc5fd5c..7fe33b3 100644 --- a/Doc/c-api/gcsupport.rst +++ b/Doc/c-api/gcsupport.rst @@ -48,12 +48,20 @@ Constructors for container types must conform to two rules: Analogous to :cfunc:`PyObject_NewVar` but for container objects with the :const:`Py_TPFLAGS_HAVE_GC` flag set. + .. versionchanged:: 2.5 + This function used an :ctype:`int` type for *size*. This might require + changes in your code for properly supporting 64-bit systems. -.. cfunction:: PyVarObject * PyObject_GC_Resize(PyVarObject *op, Py_ssize_t) + +.. cfunction:: TYPE* PyObject_GC_Resize(TYPE, PyVarObject *op, Py_ssize_t newsize) Resize an object allocated by :cfunc:`PyObject_NewVar`. Returns the resized object or *NULL* on failure. + .. versionchanged:: 2.5 + This function used an :ctype:`int` type for *newsize*. This might + require changes in your code for properly supporting 64-bit systems. + .. cfunction:: void PyObject_GC_Track(PyObject *op) |