[Python-Dev] dict.addlist() (original) (raw)
Raymond Hettinger python at rcn.com
Tue Jan 20 09:30:21 EST 2004
- Previous message: [Python-Dev] dict.addlist()
- Next message: [Python-Dev] dict.addlist()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Bob Ippolito]
d.setdefault(k, factory=list).append(v) ?
That is somewhat nice and backwards compatible too.
Raymond Hettinger
- Previous message: [Python-Dev] dict.addlist()
- Next message: [Python-Dev] dict.addlist()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]