Commit 50dbb3f2 authored by Victor Stinner's avatar Victor Stinner

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

during the lookup
parent 704cae50
......@@ -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*.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment