my computer is allergic to pickles

Bob Fnord bob at example.com
Fri Mar 11 20:28:22 EST 2011


Miki Tebeka <miki.tebeka at gmail.com> wrote:

> > >From looking at the shelve info in the library reference, I get
> > the impression it's tricky to change the values in the dict for
> > existing keys and be sure they get changed on disk.
> You can use writeback=True or call sync at the right places.
> 
> 
> > How can you convert a tuple of strings to a string and back in a
> > reliable deterministic way? The original strings may have ' " ,
> > in them.
> You can use marshal, json or any other serializing library.

Thanks for the tips. I guess I'll use json if I ever need to be
able to read the file with something else besides python, but
marshal seems fine for now.




More information about the Python-list mailing list