2008-07-15: Selected articles now have experimental "comment" links in the left column and at the bottom. You're welcome to use them for commenting and voting on articles. For a bit more on this, see this page. /F

dict.update

a.update([b]) updates (and overwrites) key/value pairs from b.

dict.update accepts either another dictionary or an iterable of key/value pairs (as a tuple or other iterable of length two). If keyword arguments are specified, the dictionary is then is updated with those key/value pairs: “d.update(red=1, blue=2)”.

Changed in version 2.4: Allowed the argument to be an iterable of key/value pairs and allowed keyword arguments.

 

A Django site. this page was rendered by a django application in 0.01s 2008-07-25 10:27:14.360169. hosted by webfaction.