Re: [ZODB-Dev] BTrees package problems

2013-07-24 Thread Jim Fulton
On Tue, Jul 23, 2013 at 9:12 PM, Christian Tismer tis...@stackless.com wrote: ... What I'm after is a way to over-ride the implementation by user code. I did not yet check it this is implemented already, in the Python way of sub-classing built-ins. BTrees (somewhet to mysurprise, do support

Re: [ZODB-Dev] BTrees package problems

2013-07-23 Thread Jim Fulton
On Mon, Jul 22, 2013 at 9:06 PM, Christian Tismer tis...@stackless.com wrote: ... Actually, I would like to add a callable-check instead, to allow for more flexible derivatives. I don't understand this. Simple: I am writing BTree forests for versioned, read-only databases. For that, I

Re: [ZODB-Dev] BTrees package problems

2013-07-23 Thread Christian Tismer
Hey Jim, On 23.07.13 19:18, Jim Fulton wrote: On Mon, Jul 22, 2013 at 9:06 PM, Christian Tismer tis...@stackless.com wrote: ... Actually, I would like to add a callable-check instead, to allow for more flexible derivatives. I don't understand this. Simple: I am writing BTree forests for

Re: [ZODB-Dev] BTrees package problems

2013-07-22 Thread Jim Fulton
On Sat, Jul 20, 2013 at 11:27 PM, Christian Tismer tis...@stackless.com wrote: The BTrees package is an attempt to isolate certain things from ZODB. While I appreciate the general intent, I cannot see the advantage at this point: - BTrees can be imported alone, yes. But it has the extensions

Re: [ZODB-Dev] BTrees package problems

2013-07-22 Thread Patrick Strawderman
On Jul 20, 2013, at 11:27 PM, Christian Tismer tis...@stackless.com wrote: - BTrees has a serious bug, see the following example: from BTrees import OOBTree as BT t = BT.BTree() for num in range(100): ... k = str(num) ... t[k] = k ... t._firstbucket._next = None len(t) Bus

Re: [ZODB-Dev] BTrees package problems

2013-07-22 Thread Christian Tismer
On 22.07.13 16:38, Patrick Strawderman wrote: On Jul 20, 2013, at 11:27 PM, Christian Tismer tis...@stackless.com wrote: - BTrees has a serious bug, see the following example: from BTrees import OOBTree as BT t = BT.BTree() for num in range(100): ... k = str(num) ... t[k] = k ...

Re: [ZODB-Dev] BTrees package problems

2013-07-22 Thread Christian Tismer
On 22.07.13 13:08, Jim Fulton wrote: On Sat, Jul 20, 2013 at 11:27 PM, Christian Tismer tis...@stackless.com wrote: The BTrees package is an attempt to isolate certain things from ZODB. While I appreciate the general intent, I cannot see the advantage at this point: - BTrees can be imported

[ZODB-Dev] BTrees package problems

2013-07-20 Thread Christian Tismer
The BTrees package is an attempt to isolate certain things from ZODB. While I appreciate the general intent, I cannot see the advantage at this point: - BTrees can be imported alone, yes. But it has the extensions prepared with special ZODB slots, which makes this very questionable. -