I started using the shelve module and faced a brick wall when I tried to move a data file from Linux to Windows and visa-versa
news.dat: Berkeley DB (Hash, version 7, native byte-order)
file.dat: Berkeley DB 1.85 (Hash, version 2, native byte-order)
does anyone know of a better way to save data. I could possible just pickle a dict into a file, I just thought this way could be better/cleaner, since pickle might be slow and memory expensive on larger data.
File "/usr/lib/python2.2/dbhash.py", line 16, in open
return bsddb.hashopen(file, flag, mode)
bsddb.error: (22, 'Invalid argument')