[Python-checkins] r63754 - python/trunk/Doc/tutorial/controlflow.rst

benjamin.peterson python-checkins at python.org
Wed May 28 03:12:36 CEST 2008


Author: benjamin.peterson
Date: Wed May 28 03:12:35 2008
New Revision: 63754

Log:
update tutorial function with more appropiate one from Eric Smith


Modified:
   python/trunk/Doc/tutorial/controlflow.rst

Modified: python/trunk/Doc/tutorial/controlflow.rst
==============================================================================
--- python/trunk/Doc/tutorial/controlflow.rst	(original)
+++ python/trunk/Doc/tutorial/controlflow.rst	Wed May 28 03:12:35 2008
@@ -445,8 +445,8 @@
 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:


More information about the Python-checkins mailing list