Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a436878

Browse files
committed
update tutorial function with more appropiate one from Eric Smith
1 parent dbd2f6d commit a436878

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/controlflow.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,8 @@ called with an arbitrary number of arguments. These arguments will be wrapped
445445
up in a tuple. Before the variable number of arguments, zero or more normal
446446
arguments may occur. ::
447447

448-
def fprintf(file, template, *args):
449-
file.write(template.format(args))
448+
def write_multiple_items(file, seperator, *args):
449+
file.write(seperator.join(args))
450450

451451

452452
.. _tut-unpacking-arguments:

0 commit comments

Comments
 (0)