[Python-Dev] ANN: BerkeleyDB 2.9.0 (experimental) (original) (raw)
Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon, 21 Aug 2000 09:57:54 +0200
- Previous message: [Python-Dev] Py_MakePendingCalls
- Next message: [Python-Dev] Re: [Python-checkins] CVS: python/nondist/peps pep-0000.txt,1.24,1.25
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.DBCREATE) d=db.Db(e) d.open("foo",db.DBHASH,db.DBCREATE) Traceback (most recent call last): File "", line 1, in ? _bsddb.error: (22, 'Das Argument ist ung\374ltig') d.open("foo",db.DBHASH,db.DBCREATE) zsh: segmentation fault python
BTW, I still don't know what argument exactly was invalid ...
Regards, Martin
- Previous message: [Python-Dev] Py_MakePendingCalls
- Next message: [Python-Dev] Re: [Python-checkins] CVS: python/nondist/peps pep-0000.txt,1.24,1.25
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]