#8030: more docstring fix for builtin types.

This commit is contained in:
Ezio Melotti 2010-02-28 23:59:00 +00:00
parent 613c7a549a
commit fb501123e3
3 changed files with 7 additions and 7 deletions

View 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"

View 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");

View 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 */