[Python-ideas] The @update operator for dictionaries
Jonathan Fine
jfine2358 at gmail.com
Sat Mar 9 10:33:25 EST 2019
I've been thinking that it might be easier, in the long term, to make
a big step and allow
>>> a @update= b
as valid Python. What do you think? (I hope it will look nicer once
syntax highlighted.)
For clarity, this would proceed via a.__iat_update__(b), and (a
@update b) would be similarly defined.
As major disadvantage, of course, will be that
>>> guido at python.org
would no longer be valid Python!
And also we might have fewer animated discussions.
--
Jonathan
More information about the Python-ideas
mailing list