Storing objects in dictionary

Jeremy Jones zanesdad at bellsouth.net
Thu Nov 4 19:41:31 EST 2004


Kirby Urner wrote:

>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
>
>  
>
Doh!  Yes, that is what my brain thought, but not what my uncooperative 
fingers typed.  Thanks.

Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20041104/0194205e/attachment.html>


More information about the Python-list mailing list