From: Benjamin Peterson Date: Wed, 28 May 2008 01:12:35 +0000 (+0000) Subject: update tutorial function with more appropiate one from Eric Smith X-Git-Tag: v2.6b1~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4368784197a338c69a249229d24f88fff816701;p=python update tutorial function with more appropiate one from Eric Smith --- diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 9b68e57469..3fac848c57 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -445,8 +445,8 @@ called with an arbitrary number of arguments. These arguments will be wrapped up in a tuple. Before the variable number of arguments, zero or more normal arguments may occur. :: - def fprintf(file, template, *args): - file.write(template.format(args)) + def write_multiple_items(file, seperator, *args): + file.write(seperator.join(args)) .. _tut-unpacking-arguments: