using the bsddb from Python (missing docs!)

vincent wehren vincent at visualtrans.de
Fri Nov 19 16:05:13 EST 2004


Michele Simionato wrote:
> vincent wehren <vincent at visualtrans.de> wrote in message news:<cnk73p$113$1 at news2.zwoll1.ov.home.nl>...
> 
>>The bsddb3 package has become part of the standard library as of 2.3, I 
>>believe. The docs for this "full blown" bsddb package are not (yet) part 
>>of Python docs, but off-site on http://pybsddb.sourceforge.net/bsddb3.html.
> 
> 
> I am a bit confused about pybsddb; is pybsddb exactly the same as the module 
> bsddb in Python 2.3+ ? Originally I thought that pybsddb had more stuff in it,
> but now I tend to believe that they are the same. It is confusing since the 
> docs are not in the standard distribution, so it is not clear if they are the 
> same package (as optik and optparse, for instance) or not. Also, the docs 
> of pybsddb are kind of terse: there is the API but there are no examples, so 
> they are not very suitable for people without previous experience with the 
> sleepycat database. This is the reason why I asked is somebody is aware of
> some journal article, or tutorial, or other useful stuff.
> 
> 
>        Michele Simionato

My guess is that it is the same thing, but that the release schedule 
varies. Using the print_version() function from test_all.py in the test 
directory with Python 2.3.4 gives:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
bsddb.db.version():   (4, 1, 25)
bsddb.db.__version__: 4.2.0.2
bsddb.db.cvsid:       $Id: _bsddb.c,v 1.17.6.4 2004/03/16 07:47:45 greg 
Exp $
python version:       2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 
bit (Intel)]
My pid:               1056
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

The version of pybsddb on Sourceforge is at 4.2.4.


I don't know any documentation besides the API stuff. So I guess that 
inference from what happens in the test modules probably does give you 
the most mileage ;).

--
Vincent Wehren




More information about the Python-list mailing list