[Python-checkins] cpython (3.1): use '->' to indicate return values
benjamin.peterson
python-checkins at python.org
Tue May 24 19:46:09 CEST 2011
http://hg.python.org/cpython/rev/310b484ebd91
changeset: 70338:310b484ebd91
branch: 3.1
parent: 70335:8b384de4e780
user: Benjamin Peterson <benjamin at python.org>
date: Tue May 24 12:42:51 2011 -0500
summary:
use '->' to indicate return values
files:
Objects/typeobject.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -2515,9 +2515,9 @@
PyDoc_STR("__prepare__() -> dict\n"
"used to create the namespace for the class statement")},
{"__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}
};
@@ -3354,7 +3354,7 @@
{"__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}
};
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list