> Looks like your "e"... Is that the key field?
Yes, you are right 'e' is the key. And rest of them are data.
>AND the order of the items is "o" before "i"
>-- that doesn't seem to match your C struct definition.
Sorry, I was testing the bdb and while doing that I noticed,
c-struct order is not
Hi -
We have C code which writes following struct into berkeley db ("my_db.db").
struct my_info {
unsigned long int i, e;
int o;
char *f;
char *s;
};
How to read this via Python? Google search gave this code
---
$ cat pybsd2.py
from bsddb import db
fruitDB = db.DB()
fruitDB.open('