diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-02 06:42:25 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-02 06:42:25 (GMT) |
commit | 1b8ca0d87a806a5098496ad4864a975707cd6bac (patch) | |
tree | 756b01845be7aaf90fd9cbb0533334f5e419f893 /Objects | |
parent | 9577761337af6f3d052ea793b25656bcea2c92c9 (diff) | |
download | cpython-1b8ca0d87a806a5098496ad4864a975707cd6bac.zip cpython-1b8ca0d87a806a5098496ad4864a975707cd6bac.tar.gz cpython-1b8ca0d87a806a5098496ad4864a975707cd6bac.tar.bz2 |
Rewrite the tuple() docstring to parallel the list() docstring.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/tupleobject.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 78b80e3..b07eb74 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 */ |