diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-05-13 18:48:01 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-05-13 18:48:01 (GMT) |
commit | 9a2349030a706433b519ae99816fc540ecefc143 (patch) | |
tree | 8afad14bc8fa10812c97a35ef4fc1ab09521ee43 /Doc | |
parent | 7feb9f42258ff72ce1d3628c5ccc261c2ca238b9 (diff) | |
download | cpython-9a2349030a706433b519ae99816fc540ecefc143.zip cpython-9a2349030a706433b519ae99816fc540ecefc143.tar.gz cpython-9a2349030a706433b519ae99816fc540ecefc143.tar.bz2 |
Issue #14417: Mutating a dict during lookup now restarts the lookup instead of raising a RuntimeError (undoes issue #14205).
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/stdtypes.rst | 4 | ||||
-rw-r--r-- | Doc/whatsnew/3.3.rst | 7 |
2 files changed, 0 insertions, 11 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 212fd5e..a34b1cf 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2210,10 +2210,6 @@ 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*. diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index 35920b9..148324e 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -557,13 +557,6 @@ Some smaller changes made to the core Python language are: (:issue:`12170`) -* A dict lookup now raises a :exc:`RuntimeError` if the dict is modified during - the lookup. If you implement your own comparison function for objects used - as dict keys and the dict is shared by multiple threads, access to the dict - should be protected by a lock. - - (:issue:`14205`) - * New methods have been added to :class:`list` and :class:`bytearray`: ``copy()`` and ``clear()``. |