On Sat, Mar 16, 2019 at 07:13:04PM -0400, Terry Reedy wrote: > > new = a.copy() > > new.update(b) > > # do something with new > > In my census of the stdlib, already posted and noted as subject to > error, this was twice as common as all other non-update-in-place > constructions (8 to 4) and about 1/4 as common as update in place (8 to > 35).
Thank you Terry for doing a survey of the stdlib. -- Steven _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/