]> granicus.if.org Git - python/commitdiff
#17688: fix declaration for richcmp example in the docs.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Fri, 12 Apr 2013 13:08:40 +0000 (16:08 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Fri, 12 Apr 2013 13:08:40 +0000 (16:08 +0300)
Thanks to Daniel Mullner

Doc/extending/newtypes.rst

index 835a92e2423755beb779233543a1b0ece4b624d1..cb20bce43509d87d401ebcb9c3a9504637b12699 100644 (file)
@@ -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;