diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-10-04 06:53:20 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-10-04 06:53:20 (GMT) |
commit | 3899d74c102b9b5925f7b29bd12a96164f3dbaef (patch) | |
tree | c207b4149133b9860264a8cd5e88f081b7a2b1f8 /Doc | |
parent | 1c9ca8726ec138af890643100859d3bc65d4e365 (diff) | |
download | cpython-3899d74c102b9b5925f7b29bd12a96164f3dbaef.zip cpython-3899d74c102b9b5925f7b29bd12a96164f3dbaef.tar.gz cpython-3899d74c102b9b5925f7b29bd12a96164f3dbaef.tar.bz2 |
Make clear that tuple() accepts the same kind of arguments as list().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libfuncs.tex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index ec7ce86..acf1b09 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -722,7 +722,9 @@ its goal is to return a printable string. \begin{funcdesc}{tuple}{sequence} Return a tuple whose items are the same and in the same order as -\var{sequence}'s items. If \var{sequence} is already a tuple, it +\var{sequence}'s items. \var{sequence} may be a sequence, a +container that supports iteration, or an iterator object. +If \var{sequence} is already a tuple, it is returned unchanged. For instance, \code{tuple('abc')} returns returns \code{('a', 'b', 'c')} and \code{tuple([1, 2, 3])} returns \code{(1, 2, 3)}. |