Miki Tebeka <miki.teb...@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. -- http://mail.python.org/mailman/listinfo/python-list