[Python-ideas] dict.merge(d1, d2, ...) (Counter proposal for PEP 584)

Serhiy Storchaka storchaka at gmail.com
Sun Mar 24 02:53:10 EDT 2019


23.03.19 18:24, Christopher Barker пише:
> I wonder how often + is used with lists in the stdlib...

Searching for "+ [" shows that even concatenating with the string 
display and comprehensions is several times more common that merging 
dicts. And there should be cases not covered by this simple search, and 
concatenating of tuples and other sequences. Also, using + for sequences 
is a generalization of using it for strings and bytes objects, which are 
even more common.



More information about the Python-ideas mailing list