dict.has_key(x) versus 'x in dict'

Hendrik van Rooyen mail at microcorp.co.za
Fri Dec 8 00:27:55 EST 2006


<skip at pobox.com> wrote:

>     Hendrik> - as long as it works, and is fast enough, its not broken, so
>     Hendrik> don't fix it...
>
> That's the rub.  It wasn't fast enough.  I only realized that had been a
> problem once I fixed it though.

LOL - this is kind of weird - it was working, nobody complained, you fiddled
with it to make it faster, (just because you could, not because you had to, or
were asked to), it became faster, and then, suddenly, retrospectively,
it became a problem ????

Would it have been no problem if it so happened that you were unable to make it
go faster?

I don't really follow that logic - but then I have never believed that I could
change yesterday...

;-)   - Hendrik





More information about the Python-list mailing list