Issue1149413
Created on 2005-02-22 22:14 by mmokrejs, last changed 2006-04-12 20:17 by gregory.p.smith.
| Messages (3) | |||
|---|---|---|---|
| msg24362 - (view) | Author: Martin Mokrejs (mmokrejs) | Date: 2005-02-22 22:14 | |
Where: http://docs.python.org/lib/module-bsddb.html You say there: <quote> btopen( filename[, flag[, mode[, btflags[, cachesize[, maxkeypage[, minkeypage[, psize[, lorder]]]]]]]]) </quote> the word psize should be replaced with pgsize. An example would help: >>> d = bsddb.btopen(None, "c", cachesize=768000, pgsize=65536) >>> d = bsddb.btopen(None, "n", cachesize=768000, pgsize=65536) Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.3/bsddb/__init__.py", line 201, in btopen flags = _checkflag(flag, file) File "/usr/lib/python2.3/bsddb/__init__.py", line 249, in _checkflag if os.path.isfile(file): File "/usr/lib/python2.3/posixpath.py", line 200, in isfile st = os.stat(path) TypeError: coercing to Unicode: need string or buffer, NoneType found >>> The latter is I believe possibly a bug in the python wrapper not handling 'n' properly. |
|||
| msg24363 - (view) | Author: A.M. Kuchling (akuchling) | Date: 2005-06-08 21:57 | |
Logged In: YES user_id=11375 I've fixed the documentation to use the right parameter name; thanks for reporting this! The example you give doesn't work for me: it reports 'bsddb._db.DBInvalidArgError: (22, 'Invalid argument -- set_cachesize: method meaningless in shared environment')' with the current CVS head. Removing the cachesize argument makes it work. The 'n' problem does seem to be a bug; the code should check that file is not None before doing os.file.exists(). Reassigning and reclassifying the bug. |
|||
| msg24364 - (view) | Author: Gregory P. Smith (gregory.p.smith) | Date: 2006-04-12 20:17 | |
Logged In: YES user_id=413 fix for the 'n' flag not working with a filename of None committed (with a test case). svn rev 45318. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2005-02-22 22:14:20 | mmokrejs | create | |