Which is faster? (if not b in m) or (if m.count(b) > 0)
Peter Hansen
peter at engcorp.com
Thu Feb 23 08:56:47 EST 2006
Farel wrote:
> Thank you, Peter! Please understand, I was attempting to get more info
> on the WHY x is faster than y... from those with more experience.
> Timer cannot give me that info.
Thanks for clarifying. For future reference, it's traditional in
English to use the word "why" in a question when you're asking WHY,
rather than, say, phrasing the question like this:
Farel wrote:
>> Tim, Are you saying that:
>> not (b in m)
>> is faster than:
>> b not in m
>> ????
-Peter
More information about the Python-list
mailing list