Storing objects in dictionary

Kirby Urner urner at alumni.princeton.edu
Thu Nov 4 18:07:35 EST 2004


Jeremy Jones <zanesdad at bellsouth.net> wrote:

>Are you trying to use the session object as a key in the dictionary or a 
>value of a key?  What error are you getting?  You should be able to put 
>anything into a dictionary (AFAIK) as a key, but only hashable objects 
                                         ^^^
                                        value
>can be put in as keys.
>
>
>Jeremy Jones

I know you know what you meant.  Just correcting for posterity. -- Kirby




More information about the Python-list mailing list