]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#8030: more docstring fix for builtin types.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 28 Feb 2010 23:59:00 +0000 (23:59 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 28 Feb 2010 23:59:00 +0000 (23:59 +0000)
Objects/dictobject.c
Objects/listobject.c
Objects/tupleobject.c

index 517c20c2fc5f9116aed8bc74146437bf7018c170..be2517609eeb9374ac23b0c94f4d822a9076057d 100644 (file)
@@ -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"
index d7103744249f0bddbbf4006cba95e1e5039f7742..86100852493de9b17ea2af572049f306cbb5a8bb 100644 (file)
@@ -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");
 
 
index 384b83068a62323ce714b7e294ec02bcdf58ee2b..7376f1a12bf6d4835573cd94713ff50e6db7eb00 100644 (file)
@@ -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 */