[Python-ideas] adding dictionaries

Ryan Hiebert ryan at ryanhiebert.com
Mon Jul 28 20:37:03 CEST 2014


> On Jul 28, 2014, at 11:04 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> 
> I'm still inclined to prefer allowing update() to accept multiple 
> arguments:
> 
> a.update(b, c, d)
> 
> rather than a += b + c + d
> 
> which suggests that maybe there ought to be an updated() built-in, Let 
> the bike-shedding begin: should such a thing be spelled ?
> 
> new_dict = a + b + c + d
> 
or, to match set

new_dict = a | b | c | d



More information about the Python-ideas mailing list