diff -r e67b3a9bd2dc Doc/c-api/code.rst --- a/Doc/c-api/code.rst Sat Mar 03 02:38:37 2012 +0100 +++ b/Doc/c-api/code.rst Sun Mar 11 08:29:11 2012 +0530 @@ -31,7 +31,7 @@ Return true if *co* is a :class:`code` object -.. c:function:: int PyCode_GetNumFree(PyObject *co) +.. c:function:: int PyCode_GetNumFree(PyCodeObject *co) Return the number of free variables in *co*. diff -r e67b3a9bd2dc Doc/c-api/codec.rst --- a/Doc/c-api/codec.rst Sat Mar 03 02:38:37 2012 +0100 +++ b/Doc/c-api/codec.rst Sun Mar 11 08:29:11 2012 +0530 @@ -10,10 +10,7 @@ As side effect, this tries to load the :mod:`encodings` package, if not yet done, to make sure that it is always first in the list of search functions. -.. c:function:: int PyCodec_KnownEncoding(const char *encoding) - Return ``1`` or ``0`` depending on whether there is a registered codec for - the given *encoding*. .. c:function:: PyObject* PyCodec_Encode(PyObject *object, const char *encoding, const char *errors) diff -r e67b3a9bd2dc Doc/c-api/type.rst --- a/Doc/c-api/type.rst Sat Mar 03 02:38:37 2012 +0100 +++ b/Doc/c-api/type.rst Sun Mar 11 08:29:11 2012 +0530 @@ -51,13 +51,13 @@ modification of the attributes or base classes of the type. -.. c:function:: int PyType_HasFeature(PyObject *o, int feature) +.. c:function:: int PyType_HasFeature(PyTypeObject *o, int feature) Return true if the type object *o* sets the feature *feature*. Type features are denoted by single bit flags. -.. c:function:: int PyType_IS_GC(PyObject *o) +.. c:function:: int PyType_IS_GC(PyTypeObject *o) Return true if the type object includes support for the cycle detector; this tests the type flag :const:`Py_TPFLAGS_HAVE_GC`. diff -r e67b3a9bd2dc Doc/c-api/unicode.rst --- a/Doc/c-api/unicode.rst Sat Mar 03 02:38:37 2012 +0100 +++ b/Doc/c-api/unicode.rst Sun Mar 11 08:29:11 2012 +0530 @@ -1615,7 +1615,7 @@ ISO-8859-1 if it contains non-ASCII characters". -.. c:function:: int PyUnicode_RichCompare(PyObject *left, PyObject *right, int op) +.. c:function:: PyObject* PyUnicode_RichCompare(PyObject *left, PyObject *right, int op) Rich compare two unicode strings and return one of the following: