summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-05-24 12:42:51 -0500
committerBenjamin Peterson <benjamin@python.org>2011-05-24 12:42:51 -0500
commitf8e1b76aad8a8e396b07efccb1a7941abf6dba11 (patch)
tree02ab8a9d2ba0c8b47ac8a7b44e3c47742dd36bb3
parent01e8e6d6e8bd22049c3d850aed0262578c185390 (diff)
downloadcpython-f8e1b76aad8a8e396b07efccb1a7941abf6dba11.tar.gz
use '->' to indicate return values
-rw-r--r--Objects/typeobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 30afc24bf0..49c7e071e9 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -2665,9 +2665,9 @@ static PyMethodDef type_methods[] = {
{"__subclasses__", (PyCFunction)type_subclasses, METH_NOARGS,
PyDoc_STR("__subclasses__() -> list of immediate subclasses")},
{"__instancecheck__", type___instancecheck__, METH_O,
- PyDoc_STR("__instancecheck__() -> check if an object is an instance")},
+ PyDoc_STR("__instancecheck__() -> bool\ncheck if an object is an instance")},
{"__subclasscheck__", type___subclasscheck__, METH_O,
- PyDoc_STR("__subclasscheck__() -> check if a class is a subclass")},
+ PyDoc_STR("__subclasscheck__() -> bool\ncheck if a class is a subclass")},
{0}
};
@@ -3490,7 +3490,7 @@ static PyMethodDef object_methods[] = {
{"__format__", object_format, METH_VARARGS,
PyDoc_STR("default object formatter")},
{"__sizeof__", object_sizeof, METH_NOARGS,
- PyDoc_STR("__sizeof__() -> size of object in memory, in bytes")},
+ PyDoc_STR("__sizeof__() -> int\nsize of object in memory, in bytes")},
{0}
};