dict.setdefault()

Raymond Hettinger python at rcn.com
Mon Apr 11 20:17:01 EDT 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