]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF #904720: dict.update should take a 2-tuple sequence like dict.__init_
authorRaymond Hettinger <python@rcn.com>
Thu, 4 Mar 2004 08:25:44 +0000 (08:25 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 4 Mar 2004 08:25:44 +0000 (08:25 +0000)
commit31017aed36a5c5b0e4b16ca58bea09c9ce360134
tree766d70bb4fbb6878a71c81fc3874515cfcbc8aa8
parent6c79a518e70ea8e45e3287573d99c648ae3cb21b
SF #904720:  dict.update should take a 2-tuple sequence like dict.__init_
(Championed by Bob Ippolito.)

The update() method for mappings now accepts all the same argument forms
as the dict() constructor.  This includes item lists and/or keyword
arguments.
Doc/lib/libstdtypes.tex
Doc/whatsnew/whatsnew24.tex
Lib/UserDict.py
Lib/os.py
Lib/test/test_call.py
Lib/test/test_types.py
Lib/test/test_userdict.py
Lib/weakref.py
Misc/ACKS
Misc/NEWS
Objects/dictobject.c