Skip to content

Instantly share code, notes, and snippets.

@malthe
malthe / btree.py
Created March 2, 2012 22:51 — forked from gaubert/btree.py
A pure-python B+ tree implementation (interpreter versions 2.6 thru 3.2)
# Based on code by Travis Parker
import bisect
import operator
try:
xrange
except NameError:
xrange = range