changeset: 75489:0255bafbccf2 parent: 75486:ae6cda85451a user: Victor Stinner date: Thu Mar 08 02:50:17 2012 +0100 files: Doc/library/stdtypes.rst description: Issue #14205: document the change of dict[key] behaviour if dict is modified during the lookup diff -r ae6cda85451a -r 0255bafbccf2 Doc/library/stdtypes.rst --- a/Doc/library/stdtypes.rst Wed Mar 07 19:10:42 2012 -0600 +++ b/Doc/library/stdtypes.rst Thu Mar 08 02:50:17 2012 +0100 @@ -2208,6 +2208,10 @@ 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*.

AltStyle によって変換されたページ (->オリジナル) /