[Python-checkins] r63754 - python/trunk/Doc/tutorial/controlflow.rst
Georg Brandl
g.brandl at gmx.net
Wed May 28 09:43:33 CEST 2008
benjamin.peterson schrieb:
> 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))
ITYM "separator". :)
Georg
More information about the Python-checkins
mailing list