hashability

Asun Friere afriere at yahoo.co.uk
Wed Aug 12 02:29:41 EDT 2009


On Aug 12, 3:52 pm, Chris Rebert <ch... at rebertia.com> wrote:

> Thought Experiment:
> Consider, for each dict, the case of pickling it twice to 2 separate files.
> When loaded from both files into the same program, the spam-ham dicts
> will work as expected between each other.
> The dicts with C()s will not. For example, assuming the unpickled
> dicts are `cs1` and `cs2`, cs1[cs2.keys()[0]] will raise KeyError.
>

Aha!

cheers.




More information about the Python-list mailing list