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

Steven D'Aprano steve at pearwood.info
Fri Mar 1 06:11:54 EST 2019


On Thu, Feb 28, 2019 at 07:40:25AM -0500, James Lu wrote:

> I agree with Storchaka here. The advantage of existing dict merge 
> syntax is that it will cause an error if the object is not a dict or 
> dict-like object, thus preventing people from doing bad things.

What sort of "bad things" are you afraid of?


-- 
Steven


More information about the Python-ideas mailing list