Bugs item #1149413, was opened at 2005-02-22 23:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1149413&group_id=5470

Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin Mokrejs (mmokrejs)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix bsddb documentation psize -> pgsize

Initial Comment:
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. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1149413&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to