Hash of class from instance

Duncan Booth duncan.booth at invalid.invalid
Wed Feb 2 12:08:08 EST 2005


Joakim Storck wrote:

> Is there any way that I can find the hash value of a class from an
> instance?
> 

You only had to post the question once. It seems a strange thing to want, 
but just do:

    hash(a.__class__)




More information about the Python-list mailing list