dict.setdefault()

Raymond Hettinger python at rcn.com
Tue Apr 12 02:17:01 CEST 2011


On Apr 11, 4:25 pm, Tim Chase <python.l... at tim.thechases.com> wrote:
> Finally, if it were added, I'd call it something like merge()

Guido rejected merge() a long time ago.

Anyway, there is a new ChainMap() tool in the collections module for
Py3.3 that should address a number of use cases for handling default
values.


Raymond

twitter: @raymondh



More information about the Python-list mailing list