mirror of https://github.com/python/cpython
#17688: fix declaration for richcmp example in the docs.
Thanks to Daniel Mullner
This commit is contained in:
parent
c2ecac4787
commit
59d6d2dbeb
|
@ -1233,7 +1233,7 @@ if an exception was set.
|
||||||
Here is a sample implementation, for a datatype that is considered equal if the
|
Here is a sample implementation, for a datatype that is considered equal if the
|
||||||
size of an internal pointer is equal::
|
size of an internal pointer is equal::
|
||||||
|
|
||||||
static int
|
static PyObject *
|
||||||
newdatatype_richcmp(PyObject *obj1, PyObject *obj2, int op)
|
newdatatype_richcmp(PyObject *obj1, PyObject *obj2, int op)
|
||||||
{
|
{
|
||||||
PyObject *result;
|
PyObject *result;
|
||||||
|
|
Loading…
Reference in New Issue