xrange not hashable - why not?

Sean Ross sross at connectmail.carleton.ca
Sun Jan 25 11:19:00 EST 2004


"Sean Ross" <sross at connectmail.carleton.ca> wrote in message
news:FSRQb.95$qU3.31981 at news20.bellglobal.com...
> There's a bit of an efficiency issue with using 'n in k' for something
like
> 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.

Sorry for any confusion,
Sean





More information about the Python-list mailing list