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

Skip to content

Commit a6fa272

Browse files
committed
Clarify sentence in tutorial. Thanks to Marek Kubica.
1 parent 7f04431 commit a6fa272

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Doc/tutorial/controlflow.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,9 @@ and of course it would print::
457457
shopkeeper : Michael Palin
458458
sketch : Cheese Shop Sketch
459459

460-
Note that the :meth:`sort` method of the list of keyword argument names is
461-
called before printing the contents of the ``keywords`` dictionary; if this is
462-
not done, the order in which the arguments are printed is undefined.
463-
460+
Note that the list of keyword argument names is created by sorting the result
461+
of the keywords dictionary's ``keys()`` method before printing its contents;
462+
if this is not done, the order in which the arguments are printed is undefined.
464463

465464
.. _tut-arbitraryargs:
466465

0 commit comments

Comments
 (0)