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
Mario Ruggier
2005-07-13
Hi,

working with BTree the past couple of weeks, i found the need for the
following methods:

btree.has_key(key)
btree.clear()

Would there be any reasons not to add these to durus.btree.BTree ?

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?

mario
reply