2 ms·
It would be nicer if Python just optimized the old way.
by amelius 6y ago
It would be nicer if Python just optimized the old way.
- laurencerowe 6y agoSemantically they’re not the same. In the ‘old way’ adding a key to one of the original dicts does not change the new dict. Whereas the new key will appear in the ChainMap.