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.00s 2012-02-09 21:54:24.938333. hosted by webfaction.