is this a valid import sequence ?

Michele Simionato michele.simionato at gmail.com
Mon Jun 25 14:09:47 CEST 2007


On Jun 25, 1:46 pm, Steven D'Aprano
<s... at REMOVE.THIS.cybersource.com.au> wrote:

> To me, this code is redundant but not wrong:
>
> def sin(x):
>     return math.sin(x)
>
> It's not wrong, because it does everything that it is supposed to do, and
> nothing that it isn't supposed to do.

I told you, redundant/useless/misleading/poor code is worse than
wrong: wrong code
speaks (you see the bug, you have no choice but to fix it) whereas
redundant
code is silent: you see how damaging it is only when doing
maintenance, i.e. too late,
so it tends to perpetuate itself forever (whereas a bug *has* to be
fixed, otherwise
the application does not work).


   Michele Simionato




More information about the Python-list mailing list