[Python-Dev] dict.addlist()

Raymond Hettinger python at rcn.com
Tue Jan 20 09:30:21 EST 2004


[Bob Ippolito]
> d.setdefault(k, factory=list).append(v) ?


That is somewhat nice and backwards compatible too.


Raymond Hettinger




More information about the Python-Dev mailing list