1 2 3 4 5 6 7 8 9 10
#!/usr/bin/python import sys, tdb from os import * t = tdb.open('foo.tdb', 0, 0, O_RDWR | O_CREAT, 0600) tdb.close(t) unlink('foo.tdb')