summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-06 17:25:36 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-06 17:25:36 (GMT)
commita6fa2728fb48269a8634ccbba4416a4e32fbbe5b (patch)
treef9182abce407d5184d363fb3cf81881a8be99be0 /Doc/tutorial
parent7f044315f49836fbe472b53e089e733439ca5ece (diff)
downloadcpython-a6fa2728fb48269a8634ccbba4416a4e32fbbe5b.zip
cpython-a6fa2728fb48269a8634ccbba4416a4e32fbbe5b.tar.gz
cpython-a6fa2728fb48269a8634ccbba4416a4e32fbbe5b.tar.bz2
Clarify sentence in tutorial. Thanks to Marek Kubica.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/controlflow.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index f51b66c..5b05aed 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -457,10 +457,9 @@ and of course it would print::
shopkeeper : Michael Palin
sketch : Cheese Shop Sketch
-Note that the :meth:`sort` method of the list of keyword argument names is
-called before printing the contents of the ``keywords`` dictionary; if this is
-not done, the order in which the arguments are printed is undefined.
-
+Note that the list of keyword argument names is created by sorting the result
+of the keywords dictionary's ``keys()`` method before printing its contents;
+if this is not done, the order in which the arguments are printed is undefined.
.. _tut-arbitraryargs: