Language change and code breaks

Fredrik Lundh fredrik at pythonware.com
Fri Jul 13 17:03:07 EDT 2001


Skip wrote:
>
>     Tom> I *always* forget the 1/3 == 0 thing between programming bursts.
>     Tom> OTOH, I also quickly remember after making the mistake the first
>     Tom> time.
>
> What is it that reminds you of the mistake?  Is it something glaring like
> using the result of 1/3 as a divisor and getting a divide-by-zero error, or
> is it something more subtle like getting slightly incorrect results and
> having to dig through your code to find the problem?

depending on what you do, the results may not be just
"slightly" incorrect... :-)

(yes, I mess up on this several times each year.  if you do
complex things, it's not always obvious that the real problem
is an integer division hidden somewhere in there)

</F>





More information about the Python-list mailing list