20 Oct
2019
20 Oct
'19
7:40 p.m.
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