From a4368784197a338c69a249229d24f88fff816701 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 28 May 2008 01:12:35 +0000 Subject: [PATCH] update tutorial function with more appropiate one from Eric Smith --- Doc/tutorial/controlflow.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 9b68e57469e..3fac848c57f 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: