thakadu wrote: > It seems it doesnt implement ALL of the dictionary interface though. > dir({}) yields many more methods than dir(bsddb185.open(f)). > So bsddb185 is missing many of the methods that I am used > to in bsddb. I mentioned some above that are missing, pop() > in particular would be useful in my situation but there are > others as well.
I see. But .pop can be easily emulated using getitem, then del: def bsddb_pop(db, key): result = db[key] del db[key] return result >>From a java perspective I believe that its not possible to omit certain > methods when implementing an interface, I am not sure about Python > though. In Python, I'm sure: it is possible. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list