]> granicus.if.org Git - python/commitdiff
update tutorial function with more appropiate one from Eric Smith
authorBenjamin Peterson <benjamin@python.org>
Wed, 28 May 2008 01:12:35 +0000 (01:12 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 28 May 2008 01:12:35 +0000 (01:12 +0000)
Doc/tutorial/controlflow.rst

index 9b68e57469e7609e46a867ab079e5f6e651e691a..3fac848c57f9379d58fc99a9dbfd5c30ea88a4e3 100644 (file)
@@ -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: