dict.has_key(x) versus 'x in dict'
Roel Schroeven
rschroev_nospam_ml at fastmail.fm
Fri Dec 8 09:37:56 EST 2006
Roel Schroeven schreef:
> Have you never experienced the following:
>
> A customer reports a bug. Upon investaging you find the source of the
> problem, but from studying the code you don't understand anymore how it
> has ever been able to function correctly. From that moment, it indeed
> stops working even on computers where it always have worked correctly.
>
> You fix the bug and all is well again.
>
> Very strange, but it has happened to me on a few occasions. There's
> probably a perfectly logical explanation for what happened, but I never
> found it.
BTW this is known as a Schroedinbug.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
More information about the Python-list
mailing list