[Tutor] Re: Testing if a number occurs more than once
[dict version / What's the difference between has_key() and 'in']
Magnus Lycka
magnus@thinkware.se
Sat Dec 7 06:25:01 2002
At 11:21 2002-12-07 +0100, Scot Stevenson wrote:
>and Magnus was right that I shouldn't
>be assuming, but measuring.
On the other hand, you might not reach the same result
with another Python version, on another platform, or
with another set of data... :(
As Don Knuth once said: "Premature optimization is the
root of all evil."
In other words, try to keep things clear and simple, and
think about performance tricks only if measurements have
shown that it really matters.
--
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se