[Python-ideas] adding dictionaries

Steven D'Aprano steve at pearwood.info
Mon Jul 28 16:59:51 CEST 2014


On Mon, Jul 28, 2014 at 06:26:13AM +0100, Joshua Landau wrote:
> On 27 July 2014 02:17, Steven D'Aprano <steve at pearwood.info> wrote:
[...]
> > Is there a good reason for implementing the + operator as
> > dict.update?
> 
> One good reason is that people are still convinced "dict(A, **B)"
> makes some kind of sense.

Explain please. dict(A, **B) makes perfect sense to me, and it works 
perfectly too. It's a normal constructor call, using the same syntax as 
any other function or method call. Are you suggesting that it does not 
make sense?


-- 
Steven


More information about the Python-ideas mailing list