Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 70338:310b484ebd91 3.1
use '->' to indicate return values
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Tue, 24 May 2011 12:42:51 -0500 |
| parents | bf94b6a73fc8 |
| children | b488e027c952 72e93f0ebe36 |
line wrap: on
line diff
--- a/Objects/typeobject.c Tue May 24 12:06:31 2011 -0500 +++ b/Objects/typeobject.c Tue May 24 12:42:51 2011 -0500 @@ -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} };
