New submission from Daniel Müllner: The C API documentation has a code snippet with a sample implementation of a rich comparison function here:
http://docs.python.org/3.3/extending/newtypes.html#object-comparison The function is declared as static int newdatatype_richcmp(PyObject *obj1, PyObject *obj2, int op) but I believe that it should be static PyObject * newdatatype_richcmp(PyObject *obj1, PyObject *obj2, int op) ---------- assignee: docs@python components: Documentation messages: 186513 nosy: docs@python, muellner priority: normal severity: normal status: open title: Wrong signature for richcmpfunc in documentation versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17688> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com