durusmail: durus-users: some btree enhancements
some btree enhancements
2005-07-13
2005-07-13
2005-07-13
2005-07-13
2005-07-13
Re: __len__ for Btrees was Re: [Durus-users] some btree enhancements
2005-07-14
2005-07-14
2005-07-14
2005-07-14
2005-07-14
2005-07-14
2005-09-09
some btree enhancements
Patrick K. O'Brien
2005-07-13
David Binger wrote:
>
> On Jul 13, 2005, at 7:57 AM, David Binger wrote:
>
>
>>
>> On Jul 13, 2005, at 2:26 AM, Mario Ruggier wrote:
>>
>>>
>>> Plus, inadvertently I was doing "for key in btree" and modifying  the
>>> btree
>>> within the loop. Equivalent action on a dict will throw a  RuntimeError.
>>> Shouldn't BTree also do that?
>>>
>>>
>>
>> Yes.
>>
>
> But, does anyone know a way to implement this that is simple,  reliable,
> and efficient?
> Every option I've considered seems worse than leaving this as it is.

One obvious question would be "Do ZODB's BTrees support this?"

--
Patrick K. O'Brien
Orbtech    http://www.orbtech.com
Schevo     http://www.schevo.org
Pypersyst  http://www.pypersyst.org

reply