[Python-checkins] CVS: python/dist/src/Misc NEWS,1.186,1.187

Barry Warsaw bwarsaw@users.sourceforge.net
Tue, 26 Jun 2001 13:12:52 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv1024

Modified Files:
	NEWS 
Log Message:
Add an item about the extension to {}.update() to allow generic
mapping objects as an argument.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.186
retrieving revision 1.187
diff -C2 -r1.186 -r1.187
*** NEWS	2001/06/21 02:49:55	1.186
--- NEWS	2001/06/26 20:12:50	1.187
***************
*** 91,94 ****
--- 91,99 ----
    the same as dict.has_key(x).
  
+ - The update() method of dictionaries now accepts generic mapping
+   objects.  Specifically the argument object must support the .keys()
+   and __getitem__() methods.  This allows you to say, for example,
+   {}.update(UserDict())
+ 
  - Iterators were added; this is a generalized way of providing values
    to a for loop.  See PEP 234.  There's a new built-in function iter()