From 3899d74c102b9b5925f7b29bd12a96164f3dbaef Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 4 Oct 2001 06:53:20 +0000 Subject: [PATCH] Make clear that tuple() accepts the same kind of arguments as list(). --- Doc/lib/libfuncs.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index ec7ce86eedb..acf1b095c25 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)}.