[Python-ideas] Dict joining using + and +=

Antoine Pitrou solipsis at pitrou.net
Wed Feb 27 15:19:49 EST 2019


On Wed, 27 Feb 2019 10:48:21 -0800
Guido van Rossum <guido at python.org> wrote:
> 
> Great, this sounds like a good argument for + over |. The other argument is
> that | for sets *is* symmetrical, [...]

As much as it can be:

>>> {-0.0} | {0.0}
{-0.0}
>>> {0.0} | {-0.0}
{0.0}

;-)

Antoine.




More information about the Python-ideas mailing list