diff options
| author | Benjamin Peterson <benjamin@python.org> | 2008-05-28 01:12:35 +0000 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2008-05-28 01:12:35 +0000 |
| commit | a4368784197a338c69a249229d24f88fff816701 (patch) | |
| tree | 634f1b4fa32f7e8d5015be93678ea287c3b75cd8 /Doc/tutorial/controlflow.rst | |
| parent | dbd2f6d8a99c817a7a711e53554be0a75057d853 (diff) | |
| download | cpython-git-a4368784197a338c69a249229d24f88fff816701.tar.gz | |
update tutorial function with more appropiate one from Eric Smith
Diffstat (limited to 'Doc/tutorial/controlflow.rst')
| -rw-r--r-- | Doc/tutorial/controlflow.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 9b68e57469..3fac848c57 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: |
