Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59d6d2d

Browse files
committed
#17688: fix declaration for richcmp example in the docs.
Thanks to Daniel Mullner
1 parent c2ecac4 commit 59d6d2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/extending/newtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ if an exception was set.
12331233
Here is a sample implementation, for a datatype that is considered equal if the
12341234
size of an internal pointer is equal::
12351235

1236-
static int
1236+
static PyObject *
12371237
newdatatype_richcmp(PyObject *obj1, PyObject *obj2, int op)
12381238
{
12391239
PyObject *result;

0 commit comments

Comments
 (0)