]> granicus.if.org Git - python/commitdiff
Issue #14205: document the change of dict[key] behaviour if dict is modified
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 8 Mar 2012 01:50:17 +0000 (02:50 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 8 Mar 2012 01:50:17 +0000 (02:50 +0100)
during the lookup

Doc/library/stdtypes.rst

index ce83757de290babf74161bd9fe99c22d54349382..a513d4008d68ae89f9a69e9dca226010009eeb8f 100644 (file)
@@ -2208,6 +2208,10 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
       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*.