From: Tim Peters Date: Sun, 2 Sep 2001 06:42:25 +0000 (+0000) Subject: Rewrite the tuple() docstring to parallel the list() docstring. X-Git-Tag: v2.2a3~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b8ca0d87a806a5098496ad4864a975707cd6bac;p=python Rewrite the tuple() docstring to parallel the list() docstring. --- diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 78b80e3b48..b07eb747ba 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -522,10 +522,10 @@ tuple_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds) } static char tuple_doc[] = -"tuple(sequence) -> tuple\n\ -\n\ -Return a tuple whose items are the same as those of the argument sequence.\n\ -If the argument is a tuple, the return value is the same object."; +"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."; static PySequenceMethods tuple_as_sequence = { (inquiry)tuplelength, /* sq_length */