summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-28 01:12:35 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-28 01:12:35 (GMT)
commita4368784197a338c69a249229d24f88fff816701 (patch)
tree634f1b4fa32f7e8d5015be93678ea287c3b75cd8 /Doc/tutorial
parentdbd2f6d8a99c817a7a711e53554be0a75057d853 (diff)
downloadcpython-a4368784197a338c69a249229d24f88fff816701.zip
cpython-a4368784197a338c69a249229d24f88fff816701.tar.gz
cpython-a4368784197a338c69a249229d24f88fff816701.tar.bz2
update tutorial function with more appropiate one from Eric Smith
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/controlflow.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 9b68e57..3fac848 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: