[Python-ideas] Have dict().update() return its own reference.
masklinn at masklinn.net
Fri Apr 20 14:58:46 CEST 2012
On 2012-04-20, at 14:48 , Xavier Ho wrote:
> On 20 April 2012 22:47, Masklinn <masklinn at masklinn.net> wrote:
>> If you start from dict instances, you could always use:
>> merged = dict(x, **y)
> I heard that Guido wasn't a fan of this.
Works to merge two dicts in a single expression, if you don't
want to define a wrapper function and find a name for it.
More information about the Python-ideas