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

Skip to content

Commit bfbd1a2

Browse files
committed
python#12092: backport rephrasing of a paragraph in the tutorial.
1 parent b429c57 commit bfbd1a2

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
@@ -455,10 +455,9 @@ and of course it would print::
455455
shopkeeper : Michael Palin
456456
sketch : Cheese Shop Sketch
457457

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

463462
.. _tut-arbitraryargs:
464463

0 commit comments

Comments
 (0)