[Python-checkins] cpython: Issue #14205: document the change of dict[key] behaviour if dict is modified

victor.stinner python-checkins at python.org
Thu Mar 8 02:50:32 CET 2012


http://hg.python.org/cpython/rev/0255bafbccf2
changeset: 75489:0255bafbccf2
parent: 75486:ae6cda85451a
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Mar 08 02:50:17 2012 +0100
summary:
 Issue #14205: document the change of dict[key] behaviour if dict is modified
during the lookup
files:
 Doc/library/stdtypes.rst | 4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2208,6 +2208,10 @@
 See :class:`collections.Counter` for a complete implementation including
 other methods helpful for accumulating and managing tallies.
 
+ .. versionchanged:: 3.3
+ If the dict is modified during the lookup, a :exc:`RuntimeError`
+ exception is now raised.
+
 .. describe:: d[key] = value
 
 Set ``d[key]`` to *value*.
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /