]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Recorded merge of revisions 72708 via svnmerge from
authorGeorg Brandl <georg@python.org>
Sun, 17 May 2009 08:31:29 +0000 (08:31 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 17 May 2009 08:31:29 +0000 (08:31 +0000)
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.
........

Doc/library/stdtypes.rst

index fc77adcde933692bf0b59904002d0d6f3b7e86cc..2a0d08150aa4a42b876ee490727231d3ec23debb 100644 (file)
@@ -1959,8 +1959,8 @@ support membership tests:
    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