summaryrefslogtreecommitdiff
path: root/example.py
AgeCommit message (Collapse)AuthorFilesLines
2013-01-20Fix speed-testLars Wirzenius1-8/+9
2013-01-16Repair non-working example.py and speed-testAntoine Brenner1-7/+7
The introduction of the allow_writes parameter in larch/forest.py:open_forest() broke example.py and speed-test. Just adding the parameter to the open_forest calls was not enough to fix the issue. This patch fixes the issue by adding the allow_writes parameter where it is needed beyond the open_forest calls. Most notably, this patch changes the __init__ signature of the abstract base class larch.NodeStore from __init__(self, node_size, codec) to __init__(self, allow_writes, node_size, codec) This mimicks the current signatures of NodeStoreDisk and NodeStoreMemory, which include the use of allow_writes as first parameter, and which seem required to actually create a forest anyway since forest.py creates node_store instances with allow_writes as first parameter in open_forest
2013-01-16Fix allow_writeBrinx1-5/+5
2011-03-07Change names from btree to larch.Lars Wirzenius1-2/+2
2011-02-23Update example to use open_forest.Lars Wirzenius1-3/+2
2011-02-23Change the forest factory to be a function, instead.Lars Wirzenius1-1/+1
No point in a class, since every call needs all parameters anyway.
2010-06-29Add simple example program.Lars Wirzenius1-0/+86