Kaydet (Commit) 6e5184fe authored tarafından Fred Drake's avatar Fred Drake

Update comments in the second paragraph, discussing versioning issues

related to the BSD DB library.  Based on comments from Mark Summerfield
<summer@netcraft.com>.
üst be467e5c
...@@ -14,16 +14,17 @@ dictionaries. Keys and values must be strings, however, so to use ...@@ -14,16 +14,17 @@ dictionaries. Keys and values must be strings, however, so to use
other objects as keys or to store other kinds of objects the user must other objects as keys or to store other kinds of objects the user must
serialize them somehow, typically using marshal.dumps or pickle.dumps. serialize them somehow, typically using marshal.dumps or pickle.dumps.
The \module{bsddb} module is only available on \UNIX{} systems, so it There are two incompatible versions of the underlying library.
is not built by default in the standard Python distribution. Also,
there are two incompatible versions of the underlying library.
Version 1.85 is widely available, but has some known bugs. Version 2 Version 1.85 is widely available, but has some known bugs. Version 2
is not quite as widely used, but does offer some improvements. The is not quite as widely used, but does offer some improvements. The
\module{bsddb} module uses the 1.85 interface. Users wishing to use \module{bsddb} module uses the 1.85 interface. Starting with Python
version 2 of the Berkeley DB library will have to modify the source 2.0, the \program{configure} script can usually determine the
for the module to include \file{db_185.h} instead of version of the library which is available and build it correctly. If
\file{db.h} (\file{db_185.h} contains the version 1.85 compatibility you have difficulty getting \program{configure} to do the right thing,
interface). run it with the \longprogramopt{help} option to get information about
additional options that can help. On Windows, you will need to define
the \code{HAVE_DB_185_H} macro if you are building Python from source
and using version 2 of the DB library.
The \module{bsddb} module defines the following functions that create The \module{bsddb} module defines the following functions that create
objects that access the appropriate type of Berkeley DB file. The objects that access the appropriate type of Berkeley DB file. The
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment