[Python-checkins] r72709 - in python/branches/py3k: Doc/library/stdtypes.rst

georg.brandl python-checkins at python.org
Sun May 17 10:31:29 CEST 2009


Author: georg.brandl
Date: Sun May 17 10:31:29 2009
New Revision: 72709

Log:
Recorded merge of revisions 72708 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72708 | georg.brandl | 2009-05-17 10:24:29 +0200 (So, 17 Mai 2009) | 1 line
  
  #6017: better document behavior of dictiterators when the dict is changed.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Doc/library/stdtypes.rst

Modified: python/branches/py3k/Doc/library/stdtypes.rst
==============================================================================
--- python/branches/py3k/Doc/library/stdtypes.rst	(original)
+++ python/branches/py3k/Doc/library/stdtypes.rst	Sun May 17 10:31:29 2009
@@ -1959,8 +1959,8 @@
    using :func:`zip`: ``pairs = zip(d.values(), d.keys())``.  Another way to
    create the same list is ``pairs = [(v, k) for (k, v) in d.items()]``.
 
-   Iterating views while adding or deleting entries in the dictionary will raise
-   a :exc:`RuntimeError`.
+   Iterating views while adding or deleting entries in the dictionary may raise
+   a :exc:`RuntimeError` or fail to iterate over all entries.
 
 .. describe:: x in dictview
 


More information about the Python-checkins mailing list