By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,621 Members | 1,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,621 IT Pros & Developers. It's quick & easy.

db.DB_CREATE|db.DB_INIT_MPOOL|db.DB_THREAD|db.DB_I NIT_CDB

P: n/a
Why does this python program fail to read record "6000000"?

#!/usr/bin/env python
import bsddb # twiceopen.py

key="6000000"
btf=bsddb.db.DB_INIT_THREAD

list1=bsddb.btopen("twiceopen.tbl",btflags=btf)
list1[key]="we have the technology"

list2=bsddb.btopen("twiceopen.tbl",btflags=btf)
#print "key:",key,"val:",list2[key] # doesn't work...
print "first:",list2.first() # also fails first time...

list1.close()
list2.close()

Maybe the solution needs one of:
db.DB_CREATE|db.DB_INIT_MPOOL|db.DB_THREAD|db.DB_I NIT_CDB

N

Oct 27 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.