xrange not hashable - why not?

Irmen de Jong irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Sun Jan 25 11:45:29 EST 2004


Sean Ross wrote:

>>xrange(100, sys.maxint),
>>since you have to walk through the items in that range to see if n is in
>>there, and that's a large range.
> 
> 
> Hmm, I don't think what I said there is correct, please disregard.


I think you're right though:

90000000 in xrange(1,sys.maxint)   takes a long time to complete....

--Irmen



More information about the Python-list mailing list