summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-08-16 20:17:07 +0000
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-08-16 20:17:07 +0000
commit977a684c94c369a858f49ce1447308e373ca4ced (patch)
treeff6779e1c4a2dfcf13edf2c7a2858fc0b27473e7
parent4a339ad628e34578a0daea676b56fff919da6bb3 (diff)
downloadcpython-git-977a684c94c369a858f49ce1447308e373ca4ced.tar.gz
Issue #8983: Corrected docstrings.
-rw-r--r--Lib/doctest.py2
-rw-r--r--Lib/inspect.py2
-rw-r--r--Modules/_threadmodule.c2
-rw-r--r--Modules/pwdmodule.c6
-rw-r--r--Objects/typeobject.c4
5 files changed, 8 insertions, 8 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index d1b96d4d08..0a0dafdfae 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -1786,7 +1786,7 @@ def testmod(m=None, name=None, globs=None, verbose=None,
Return (#failures, #tests).
- See doctest.__doc__ for an overview.
+ See help(doctest) for an overview.
Optional keyword arg "name" gives the name of the module; by default
use m.__name__.
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 3bc220b851..61c2502f05 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -159,7 +159,7 @@ def isgeneratorfunction(object):
Generator function objects provides same attributes as functions.
- See isfunction.__doc__ for attributes listing."""
+ See help(isfunction) for attributes listing."""
return bool((isfunction(object) or ismethod(object)) and
object.__code__.co_flags & CO_GENERATOR)
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c
index 30379677dd..a7fb017c6c 100644
--- a/Modules/_threadmodule.c
+++ b/Modules/_threadmodule.c
@@ -1078,7 +1078,7 @@ PyDoc_STRVAR(allocate_doc,
"allocate_lock() -> lock object\n\
(allocate() is an obsolete synonym)\n\
\n\
-Create a new lock object. See LockType.__doc__ for information about locks.");
+Create a new lock object. See help(LockType) for information about locks.");
static PyObject *
thread_get_ident(PyObject *self)
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c
index b303f95f31..4e6bd2facf 100644
--- a/Modules/pwdmodule.c
+++ b/Modules/pwdmodule.c
@@ -100,7 +100,7 @@ PyDoc_STRVAR(pwd_getpwuid__doc__,
"getpwuid(uid) -> (pw_name,pw_passwd,pw_uid,\n\
pw_gid,pw_gecos,pw_dir,pw_shell)\n\
Return the password database entry for the given numeric user ID.\n\
-See pwd.__doc__ for more on password database entries.");
+See help(pwd) for more on password database entries.");
static PyObject *
pwd_getpwuid(PyObject *self, PyObject *args)
@@ -121,7 +121,7 @@ PyDoc_STRVAR(pwd_getpwnam__doc__,
"getpwnam(name) -> (pw_name,pw_passwd,pw_uid,\n\
pw_gid,pw_gecos,pw_dir,pw_shell)\n\
Return the password database entry for the given user name.\n\
-See pwd.__doc__ for more on password database entries.");
+See help(pwd) for more on password database entries.");
static PyObject *
pwd_getpwnam(PyObject *self, PyObject *args)
@@ -152,7 +152,7 @@ PyDoc_STRVAR(pwd_getpwall__doc__,
"getpwall() -> list_of_entries\n\
Return a list of all available password database entries, \
in arbitrary order.\n\
-See pwd.__doc__ for more on password database entries.");
+See help(pwd) for more on password database entries.");
static PyObject *
pwd_getpwall(PyObject *self)
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 7bb686421b..1babcb605c 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -2515,7 +2515,7 @@ static PyMethodDef type_methods[] = {
{"__instancecheck__", type___instancecheck__, METH_O,
PyDoc_STR("__instancecheck__() -> check if an object is an instance")},
{"__subclasscheck__", type___subclasscheck__, METH_O,
- PyDoc_STR("__subclasschck__ -> check if an class is a subclass")},
+ PyDoc_STR("__subclasscheck__() -> check if a class is a subclass")},
{0}
};
@@ -5521,7 +5521,7 @@ static slotdef slotdefs[] = {
wrap_descr_delete, "descr.__delete__(obj)"),
FLSLOT("__init__", tp_init, slot_tp_init, (wrapperfunc)wrap_init,
"x.__init__(...) initializes x; "
- "see x.__class__.__doc__ for signature",
+ "see help(type(x)) for signature",
PyWrapperFlag_KEYWORDS),
TPSLOT("__new__", tp_new, slot_tp_new, NULL, ""),
TPSLOT("__del__", tp_del, slot_tp_del, NULL, ""),