[New-bugs-announce] [issue17688] Wrong signature for richcmpfunc in documentation

Daniel Müllner report at bugs.python.org
Wed Apr 10 18:22:19 CEST 2013


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 at python
components: Documentation
messages: 186513
nosy: docs at python, muellner
priority: normal
severity: normal
status: open
title: Wrong signature for richcmpfunc in documentation
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17688>
_______________________________________


More information about the New-bugs-announce mailing list