[ZODB-Dev] BTree.setdefault(), BTree.pop()

Dieter Maurer dieter at handshake.de
Mon Oct 4 13:25:54 EDT 2004


Tim Peters wrote at 2004-10-4 11:45 -0400:
> ...
>    pl = t.get(key)
>    if pl is None:
>        pl = t[key] = PersistentList()
>    pl.append(value)
>
>So I'm -0 on the idea, because I doubt it will be used.  I understand that
>you think you'll use it.  Anyone else?

I avoid "setdefault" almost always.

-- 
Dieter


More information about the ZODB-Dev mailing list