[Python-checkins] cpython (merge 3.3 -> default): #17688: fix declaration for richcmp example in the docs.

andrew.svetlov python-checkins at python.org
Fri Apr 12 15:09:33 CEST 2013


http://hg.python.org/cpython/rev/4c996682d086
changeset:   83264:4c996682d086
parent:      83262:4c73d4785829
parent:      83263:a263d40d1724
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Fri Apr 12 16:09:00 2013 +0300
summary:
  #17688: fix declaration for richcmp example in the docs.

Thanks to Daniel Mullner

files:
  Doc/extending/newtypes.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -1233,7 +1233,7 @@
 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;

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list