Shelve problems with different python versions

Justin Sheehy dworkin at ccs.neu.edu
Wed Sep 6 20:49:34 EDT 2000


cniekel at zonnet.nl writes:

> I'm having trouble with shelve and different python "compiles".

> Each of the pythons runs the test program succesfully. The problem starts
> when the pythons have to read anothers shelve.

The problem is that shelve uses whatever db is available to it.
Unless you are extremely careful, this is very likely to be different
on different platforms.

I tend to avoid using shelve when a program's data is likely to have
to be moved to another platform, and end up just using pickle or some
other platform-independant method of persistence.

-Justin

 




More information about the Python-list mailing list