]> granicus.if.org Git - python/commitdiff
Rewrite the tuple() docstring to parallel the list() docstring.
authorTim Peters <tim.peters@gmail.com>
Sun, 2 Sep 2001 06:42:25 +0000 (06:42 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 2 Sep 2001 06:42:25 +0000 (06:42 +0000)
Objects/tupleobject.c

index 78b80e3b4803a167e39879e970232f7cfb949516..b07eb747ba94a93f3d670de8d1d90fc22f26397f 100644 (file)
@@ -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 */