Re: db.DB_CREATE|db.DB_INIT_MPOOL|db.DB_THREAD|db.DB_INIT_CDB

2005-10-28 Thread Neville C. Dempsey
On Thu, 2005-10-27 at 12:30 -0400, Jean-Paul Calderone wrote: > On Fri, 28 Oct 2005 00:17:54 +0800, "Neville C. Dempsey" at 3ttechnology.com> wrote: > >import bsddb # twiceopen.py > >Maybe the solution needs one of: > > db.DB_CREATE|db.DB_INIT_MPOOL|db.DB_THREA

db.DB_CREATE|db.DB_INIT_MPOOL|db.DB_THREAD|db.DB_INIT_CDB

2005-10-27 Thread Neville C. Dempsey
Why does this python program fail to read record "600"? #!/usr/bin/env python import bsddb # twiceopen.py key="600" 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

slicing a bsddb table, eg. for rec in bsddb["AArdvark":"zebra"]: print rec

2005-06-12 Thread Neville C. Dempsey
#!/bin/env python import bsddb test=bsddb.btopen("test.tbl") for m in "JFMATQPHSOND": test[m]="Profit for month "+m+" $1B" def subyear_report(record_selection): for data in record_selection.iteritems(): print data # I was expecting a slice of an index file to yield a # generator so not all