[Python-ideas] Joining dicts again

Jan Kaliszewski zuo at chopin.edu.pl
Sat Feb 22 01:50:57 CET 2014


21.02.2014 23:57, Steven D'Aprano wrote:

> # 1: a wins
> c = b.copy()
> c.update(a)

Sometimes I do:

c = dict(b, **a)

Cheers.
*j



More information about the Python-ideas mailing list