diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-03-08 02:50:17 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-03-08 02:50:17 +0100 |
commit | 50dbb3f2cf926fc15683b82607bd411b49d8d69d (patch) | |
tree | 88c1a193099ddff1a2c231a9b78730917060def0 | |
parent | 704cae5097900283a9b59db000279d4cc07af2d1 (diff) | |
download | cpython-git-50dbb3f2cf926fc15683b82607bd411b49d8d69d.tar.gz |
Issue #14205: document the change of dict[key] behaviour if dict is modified
during the lookup
-rw-r--r-- | Doc/library/stdtypes.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index ce83757de2..a513d4008d 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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*. |