This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: patch for 514433 bsddb.dbopen (NULL)
Type: Stage:
Components: Extension Modules Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: anthonybaxter Nosy List: anthonybaxter, gvanrossum
Priority: normal Keywords: patch

Created on 2002-04-18 07:39 by anthonybaxter, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bsd.patch anthonybaxter, 2002-04-18 07:39
Messages (3)
msg39647 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2002-04-18 07:39
This is a patch for 
[ 514433 ] bsddb: enable dbopen (file==NULL)
from that bug:
"""
bsddb: enable dbopen (file==NULL)
dbopen(): if the file argument is NULL, the library
will use a temporary file. this is useful if you want
that, or if you want to specify a large cache so that
it never actually touches the disk. [i.e., in-memory
hash/bt]
I've done this by replacing the "s" with a "z" in the
arg specs for the three open functions. Seems to work. 
"""

This patch does this. Some testing seems to show that
it works fine.

The docs for db-1.86 show that it was an acceptable
option back then, and it's still allowed for db-3.2,
so that seems a wide enough range of supported 
libraries.

Anyway, this patch has the trivial fix, additions
to the test suite (such as it is) and some short
additions to the docs (lifted from the dbopen()
manpage)

If this is fine, let me know and I'll check it into
the trunk.
msg39648 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-04-18 14:00
Logged In: YES 
user_id=6380

Looks OK. Check it in on the trunk, and we'll see how it
goes. (Could be a 2.2 candidate too I think.)
msg39649 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2002-04-23 02:14
Logged In: YES 
user_id=29957

checked into the trunk, considering it for 2.2.
History
Date User Action Args
2022-04-10 16:05:14adminsetgithub: 36461
2002-04-18 07:39:23anthonybaxtercreate