Tim> import bsddb Tim> d = bsddb.hashopen(PATH, 'r') Tim> print len(d) Tim> print len([k for k in d if d.get(k, None) is None]) Tim> That printed 40787, then 0, when I ran it just now. I also get N and 0 for my working database (opened with anydbm). Skip