July 28, 2014
2:59 p.m.
On Mon, Jul 28, 2014 at 06:26:13AM +0100, Joshua Landau wrote:
On 27 July 2014 02:17, Steven D'Aprano <steve@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