[Python-checkins] r67755 - python/branches/py3k/Doc/tutorial/datastructures.rst
benjamin.peterson
python-checkins at python.org
Sun Dec 14 16:09:34 CET 2008
Author: benjamin.peterson
Date: Sun Dec 14 16:09:34 2008
New Revision: 67755
Log:
tip-toe around dictionary keys view in the tutorial
Modified:
python/branches/py3k/Doc/tutorial/datastructures.rst
Modified: python/branches/py3k/Doc/tutorial/datastructures.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/datastructures.rst (original)
+++ python/branches/py3k/Doc/tutorial/datastructures.rst Sun Dec 14 16:09:34 2008
@@ -440,7 +440,7 @@
value associated with that key is forgotten. It is an error to extract a value
using a non-existent key.
-The :meth:`keys` method of a dictionary object returns a list of all the keys
+Preforming ``list(d.keys())`` on a dictionary returns a list of all the keys
used in the dictionary, in arbitrary order (if you want it sorted, just apply
the :meth:`sort` method to the list of keys). To check whether a single key is
in the dictionary, use the :keyword:`in` keyword.
More information about the Python-checkins
mailing list