diff options
author | Georg Brandl <georg@python.org> | 2009-05-17 08:31:29 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-05-17 08:31:29 (GMT) |
commit | 8126914398503b3774112d6ad9946a342cc8c853 (patch) | |
tree | 8bf856030776d37714d7ebfdc587b5a6127bb288 /Doc | |
parent | dcfe8e44c3f4bbfa0752fe1130c1561b94a62a94 (diff) | |
download | cpython-8126914398503b3774112d6ad9946a342cc8c853.zip cpython-8126914398503b3774112d6ad9946a342cc8c853.tar.gz cpython-8126914398503b3774112d6ad9946a342cc8c853.tar.bz2 |
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.
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/stdtypes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index fc77adc..2a0d081 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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 |