Converting old "shelve" databases to gdbm

RayOsborn at mac.com RayOsborn at mac.com
Wed Dec 26 13:14:56 EST 2007


On Dec 24, 10:01 pm, Istvan Albert <istvan.alb... at gmail.com> wrote:
> On Dec 24, 7:38 pm, RayOsb... at mac.com wrote:
>
> > Any tips welcome.
>
> pickling has a text protocol that should be compatible across python
> versions. Pickle  each of your database entries to a different file,
> then read them in the newer version of the script.
>
> i.

Thanks for the suggestion.  I had forgotten that pickle by default has
an ASCII format - I've now written a couple of scripts, first in
Python 2.2 and then in the current default version to do the
translation.  A bit tedious, but it works.





More information about the Python-list mailing list