[Python-ideas] adding dictionaries

Nathan Schneider nathan at cmu.edu
Tue Jul 29 16:50:02 CEST 2014


On Tue, Jul 29, 2014 at 7:56 AM, Jonas Wielicki <j.wielicki at sotecware.net>
wrote:

>
> FWIW, one could use an operator which inherently shows a direction: <<
> and >>, for both directions respectively.
>
> A = B >> C lets B take precedence, and A = B << C lets C take precedence.
>

If there is to be an operator devoted specifically to this, I like << and
>> as unambiguous choices. Proof:
https://mail.python.org/pipermail/python-ideas/2011-December/013232.html :)

I am also partial to the {**A, **B} proposal in
http://legacy.python.org/dev/peps/pep-0448/.

Cheers,
Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140729/20fa774b/attachment.html>


More information about the Python-ideas mailing list