custom classes in sets

vegetax vegeta.z at gmail.com
Mon Feb 14 01:56:52 EST 2005


Delaney, Timothy C (Timothy) wrote:

> vegetax wrote:
> 
>>   def __hashcode__(s): return s.path.__hashcode__()
> 
> Try __hash__ ...
> 
> Tim Delaney

sorry about the typo, it is indead __hash__() that i tried




More information about the Python-list mailing list