From: Andrew Svetlov Date: Fri, 12 Apr 2013 13:08:40 +0000 (+0300) Subject: #17688: fix declaration for richcmp example in the docs. X-Git-Tag: v3.3.2~132^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59d6d2dbebb933ee64b63f87b8a28a534d66b053;p=python #17688: fix declaration for richcmp example in the docs. Thanks to Daniel Mullner --- diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index 835a92e242..cb20bce435 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -1233,7 +1233,7 @@ if an exception was set. Here is a sample implementation, for a datatype that is considered equal if the size of an internal pointer is equal:: - static int + static PyObject * newdatatype_richcmp(PyObject *obj1, PyObject *obj2, int op) { PyObject *result;