diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2013-04-12 16:09:00 +0300 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2013-04-12 16:09:00 +0300 |
commit | 2175b4ff287ff847c0a0f6c004dd4e2ba1d8be9e (patch) | |
tree | d22d8d5d3528bb3f224884c774d3821f30934f40 | |
parent | 7ec97f415ce2468473bae39b4b6be56b6c55963a (diff) | |
parent | 59d6d2dbebb933ee64b63f87b8a28a534d66b053 (diff) | |
download | cpython-git-2175b4ff287ff847c0a0f6c004dd4e2ba1d8be9e.tar.gz |
#17688: fix declaration for richcmp example in the docs.
Thanks to Daniel Mullner
-rw-r--r-- | Doc/extending/newtypes.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index 835a92e242..cb20bce435 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -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; |