summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-02-28 23:59:00 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-02-28 23:59:00 (GMT)
commitfb501123e3c23c3e4f2861645d58134f307ea99b (patch)
treed2938ca033f6017a9487362f66c301726b802eb9 /Objects
parent613c7a549abefd1f7806b61589667de683d76858 (diff)
downloadcpython-fb501123e3c23c3e4f2861645d58134f307ea99b.zip
cpython-fb501123e3c23c3e4f2861645d58134f307ea99b.tar.gz
cpython-fb501123e3c23c3e4f2861645d58134f307ea99b.tar.bz2
#8030: more docstring fix for builtin types.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c4
-rw-r--r--Objects/listobject.c2
-rw-r--r--Objects/tupleobject.c8
3 files changed, 7 insertions, 7 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 517c20c..be25176 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -2327,9 +2327,9 @@ dict_iter(PyDictObject *dict)
}
PyDoc_STRVAR(dictionary_doc,
-"dict() -> new empty dictionary.\n"
+"dict() -> new empty dictionary\n"
"dict(mapping) -> new dictionary initialized from a mapping object's\n"
-" (key, value) pairs.\n"
+" (key, value) pairs\n"
"dict(iterable) -> new dictionary initialized as if via:\n"
" d = {}\n"
" for k, v in iterable:\n"
diff --git a/Objects/listobject.c b/Objects/listobject.c
index d710374..8610085 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -2536,7 +2536,7 @@ static PySequenceMethods list_as_sequence = {
};
PyDoc_STRVAR(list_doc,
-"list() -> new list\n"
+"list() -> new empty list\n"
"list(iterable) -> new list initialized from iterable's items");
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index 384b830..7376f1a 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -681,10 +681,10 @@ tuple_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
}
PyDoc_STRVAR(tuple_doc,
-"tuple() -> an empty tuple\n"
-"tuple(sequence) -> tuple initialized from sequence's items\n"
-"\n"
-"If the argument is a tuple, the return value is the same object.");
+"tuple() -> empty tuple\n\
+tuple(iterable) -> tuple initialized from iterable's items\n\
+\n\
+If the argument is a tuple, the return value is the same object.");
static PySequenceMethods tuple_as_sequence = {
(lenfunc)tuplelength, /* sq_length */