be able to read each other's pickles, but that's about it. Aside from
On Dec 17, 12:08 pm, Ned Batchelder <
n...@nedbatchelder.com> wrote:
> If I understand what you're doing here, you need to be very careful.
> Converting a dictionary to a string (or pickle) does not guarantee that
> two equal dictionaries convert into two equal strings (or pickles),
> especially if your version of Python changes. For example, your code
> below may create a pickle with the key 'foo' first, or it may create a
> pickle with the key 'bar' first. Both pickles un-pickle to an
> equivalent dictionary, but the pickles won't compare as equal, and your
> queries will fail.
>
> I could be wrong, and the pickle module provides some guarantee about
> the equivalency of pickles, but I don't think so.
>
> --Ned.