btree set_location() method does not work properly in new bsddb
module. \ Python version 2.3.2 \
andreyw at canoemail.com
andreyw at canoemail.com
Tue Nov 4 10:25:43 EST 2003
===========================
btree set_location() method does not work properly
in new bsddb module. \ Python version 2.3.2 \
"...For binary tree databases (opened using btopen()),
if key does not actually exist in the database,
the cursor will point to the next item in sorted order
and return that key and value."
andreyw
A. Weisberg
@canoemail.com
===========================
import bsddb
mode = 0666
flag = 'n'
file = 'bt_test.bsd'
db = bsddb.btopen(file, flag, mode)
db['c'] = 'cc'
db['a'] = 'aa'
print db.set_location('b')
Traceback (most recent call last):
File "C:\PYTHON23\lib\bsddb\__init__.py", line 147, in set_location
return self.dbc.set(key)
_bsddb.DBNotFoundError: (-30991, 'DB_NOTFOUND: No matching key/data
pair found')
Sign up today for your Free E-mail at: http://www.canoe.ca/CanoeMail
More information about the Python-bugs-list
mailing list