Hi Andrew, I just downloaded your new module, and found a few problems with it: - bsddb3.db.hashopen does not work, as Db() is called with no arguments; it expects at least one argument. The same holds for btopen and rnopen. - The Db() function should accept None as an argument (or no argument), as invoking db_create with a NULL environment creates a "standalone database". - Error recovery appears to be missing; I'm not sure whether this is the fault of the library or the fault of the module, though: >>> from bsddb3 import db >>> e=db.DbEnv() >>> e.open("/tmp/aaa",db.DB_CREATE) >>> d=db.Db(e) >>> d.open("foo",db.DB_HASH,db.DB_CREATE) Traceback (most recent call last): File "<stdin>", line 1, in ? _bsddb.error: (22, 'Das Argument ist ung\374ltig') >>> d.open("foo",db.DB_HASH,db.DB_CREATE) zsh: segmentation fault python BTW, I still don't know what argument exactly was invalid ... Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4