[ZODB-Dev] BTrees and setdefault

Dmitry Vasiliev lists at hlabs.spb.ru
Wed Aug 31 09:45:50 EDT 2005


Tim Peters wrote:
> [Dmitry Vasiliev]
> 
>>Since then I've changed my mind and almost haven't used setdefault(). So
>>now I'm only +0 on the idea. :-) I think pop() is even more useful than
>>setdefault(), I've planned to use it for some persistent queue
>>implementation (based on BTrees). So if setdefault() will be added I
>>think it would be also useful to add the pop() method.
> 
> 
> Since setdefault() is going into ZODB 3.5 (I'm going to merge Ruslan's
> branch into the trunk today), if anyone <hint> would like to code up pop()
> implementations too, I won't object.  Overall, I like pop() better than
> setdefault() too.

Wow, Ruslan already has made an implementation!

-- 
Dmitry Vasiliev (dima at hlabs.spb.ru)
     http://hlabs.spb.ru



More information about the ZODB-Dev mailing list