[Python-ideas] The @update operator for dictionaries
greg.ewing at canterbury.ac.nz
Sat Mar 9 19:13:24 EST 2019
Jonathan Fine wrote:
> It not me, but Chris and Steve who
> want to bind dict.update to an operator, namely '+'. I'm suggested
> that if you do that, why not call the operator 'update'.
One reason would be that '+' is short, whereas 'update' is long.
A large part of the reason that common operations are written
using infix operators is that the operator symbols used are very
compact. That benefit disappears if your operator is an entire
More information about the Python-ideas