summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-05-24 12:46:15 -0500
committerBenjamin Peterson <benjamin@python.org>2011-05-24 12:46:15 -0500
commitc7284122be9254a6e3b5471a933852b68692130b (patch)
tree65b9a06dd0385a97cedec50a26f06945d8db7cdc /Objects
parent1fdcf0e4b1b68fb158adfd42bbb56da7a04a42b8 (diff)
downloadcpython-git-c7284122be9254a6e3b5471a933852b68692130b.tar.gz
indicate return value on __dir__ methods
Diffstat (limited to 'Objects')
-rw-r--r--Objects/moduleobject.c2
-rw-r--r--Objects/typeobject.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index d92224917b..3817ef314e 100644
--- a/Objects/moduleobject.c
+++ b/Objects/moduleobject.c
@@ -437,7 +437,7 @@ module_dir(PyObject *self, PyObject *args)
static PyMethodDef module_methods[] = {
{"__dir__", module_dir, METH_NOARGS,
- PyDoc_STR("__dir__() -> specialized dir() implementation")},
+ PyDoc_STR("__dir__() -> list\nspecialized dir() implementation")},
{0}
};
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index a597ba0fbb..02f86ef22b 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -2662,7 +2662,7 @@ static PyMethodDef type_methods[] = {
{"__subclasscheck__", type___subclasscheck__, METH_O,
PyDoc_STR("__subclasscheck__() -> bool\ncheck if a class is a subclass")},
{"__dir__", type_dir, METH_NOARGS,
- PyDoc_STR("__dir__() -> specialized __dir__ implementation for types")},
+ PyDoc_STR("__dir__() -> list\nspecialized __dir__ implementation for types")},
{0}
};
@@ -3575,7 +3575,7 @@ static PyMethodDef object_methods[] = {
{"__sizeof__", object_sizeof, METH_NOARGS,
PyDoc_STR("__sizeof__() -> int\nsize of object in memory, in bytes")},
{"__dir__", object_dir, METH_NOARGS,
- PyDoc_STR("__dir__() -> default dir() implementation")},
+ PyDoc_STR("__dir__() -> list\ndefault dir() implementation")},
{0}
};