On Fri, Oct 18, 2019 at 09:17:53AM -0700, Andrew Barnert via Python-ideas wrote:

> I don’t think it’s about the mutating update operation; I think 
> everyone can live with the update method there. 
[...]
> And I think mutating update just goes along for the ride: if we end up 
> adding + in analogy with list concatenation, then obviously we want += 
> as well; if we add |, add |= as well; it we add a merge method, we’ve 
> already got an update method so nothing changes there; etc

Indeed! It's not even that we *want* += as well as + but that the 
interpreter gives it to us for free, whether we want it or not.



-- 
Steven
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/SNJVBCEIZUWNZHMTAVQGLPG6XGEJC24B/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to