DEV Community

Discussion on: How to Merge Two Dictionaries in Python

Collapse
 
renegadecoder94 profile image
Jeremy Grifski • Edited

It always amazes me just how big the standard library is. For instance, I’ve never heard of ChainMap. Thanks for the tip.

Also, good considerations! To be fair, I was only considering two dictionaries based on the title, and I usually don’t worry too much about premature optimization. If these solutions ended up being a bottleneck, I might look into ChainMap.