mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #14205: document the change of dict[key] behaviour if dict is modified
during the lookup
This commit is contained in:
parent
704cae5097
commit
50dbb3f2cf
1 changed files with 4 additions and 0 deletions
|
@ -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*.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue