[Python-checkins] r72708 - python/trunk/Doc/library/stdtypes.rst

georg.brandl python-checkins at python.org
Sun May 17 10:24:29 CEST 2009


Author: georg.brandl
Date: Sun May 17 10:24:29 2009
New Revision: 72708
Log:
#6017: better document behavior of dictiterators when the dict is changed.
Modified:
 python/trunk/Doc/library/stdtypes.rst
Modified: python/trunk/Doc/library/stdtypes.rst
==============================================================================
--- python/trunk/Doc/library/stdtypes.rst	(original)
+++ python/trunk/Doc/library/stdtypes.rst	Sun May 17 10:24:29 2009
@@ -1986,7 +1986,7 @@
 note for :meth:`dict.items`.
 
 Using :meth:`iteritems` while adding or deleting entries in the dictionary
- will raise a :exc:`RuntimeError`.
+ may raise a :exc:`RuntimeError` or fail to iterate over all entries.
 
 .. versionadded:: 2.2
 
@@ -1996,7 +1996,7 @@
 :meth:`dict.items`.
 
 Using :meth:`iterkeys` while adding or deleting entries in the dictionary
- will raise a :exc:`RuntimeError`.
+ may raise a :exc:`RuntimeError` or fail to iterate over all entries.
 
 .. versionadded:: 2.2
 
@@ -2006,7 +2006,8 @@
 :meth:`dict.items`.
 
 Using :meth:`itervalues` while adding or deleting entries in the
- dictionary will raise a :exc:`RuntimeError`.
+ dictionary may raise a :exc:`RuntimeError` or fail to iterate over all
+ entries.
 
 .. versionadded:: 2.2
 


More information about the Python-checkins mailing list

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