diff options
author | Anthony Baxter <anthonybaxter@gmail.com> | 2002-04-23 02:11:05 (GMT) |
---|---|---|
committer | Anthony Baxter <anthonybaxter@gmail.com> | 2002-04-23 02:11:05 (GMT) |
commit | 8388895fe43da057006e50cae5d1b6e2a12083e0 (patch) | |
tree | 4b4315181abceff4b1f0c1e32975ed88a7330665 /Modules/bsddbmodule.c | |
parent | 0494955b8f88007df3038c0e3de92ac8b4558f77 (diff) | |
download | cpython-8388895fe43da057006e50cae5d1b6e2a12083e0.zip cpython-8388895fe43da057006e50cae5d1b6e2a12083e0.tar.gz cpython-8388895fe43da057006e50cae5d1b6e2a12083e0.tar.bz2 |
SF patch [ 545523 ] patch for 514433 bsddb.dbopen (NULL)
closes SF #514433
can now pass 'None' as the filename for the bsddb.*open functions,
and you'll get an in-memory temporary store.
docs are ripped out of the bsddb dbopen man page. Fred may want to
clean them up.
Considering this for 2.2, but not 2.1.
Diffstat (limited to 'Modules/bsddbmodule.c')
-rw-r--r-- | Modules/bsddbmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/bsddbmodule.c b/Modules/bsddbmodule.c index 78f8576..74f9133 100644 --- a/Modules/bsddbmodule.c +++ b/Modules/bsddbmodule.c @@ -687,7 +687,7 @@ bsdhashopen(PyObject *self, PyObject *args) int hash = 0; /* XXX currently ignored */ int lorder = 0; - if (!PyArg_ParseTuple(args, "s|siiiiiii:hashopen", + if (!PyArg_ParseTuple(args, "z|siiiiiii:hashopen", &file, &flag, &mode, &bsize, &ffactor, &nelem, &cachesize, &hash, &lorder)) @@ -738,7 +738,7 @@ bsdbtopen(PyObject *self, PyObject *args) unsigned int psize = 0; int lorder = 0; - if (!PyArg_ParseTuple(args, "s|siiiiiii:btopen", + if (!PyArg_ParseTuple(args, "z|siiiiiii:btopen", &file, &flag, &mode, &btflags, &cachesize, &maxkeypage, &minkeypage, &psize, &lorder)) @@ -791,7 +791,7 @@ bsdrnopen(PyObject *self, PyObject *args) char *bval = ""; char *bfname = NULL; - if (!PyArg_ParseTuple(args, "s|siiiiiiss:rnopen", + if (!PyArg_ParseTuple(args, "z|siiiiiiss:rnopen", &file, &flag, &mode, &rnflags, &cachesize, &psize, &lorder, &reclen, &bval, &bfname)) |