xrange not hashable - why not?
sross at connectmail.carleton.ca
Sun Jan 25 17:19:00 CET 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
> 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,
More information about the Python-list