[Tutor] Stupid bug

Wayne Werner waynejwerner at gmail.com
Thu Nov 11 04:40:34 CET 2010


On Wed, Nov 10, 2010 at 5:16 PM, Terry Carroll <carroll at tjc.com> wrote:

> This isn't a question, I'm just offering it as a cautionary tale and an
> opportunity to laugh at my own stupidity.
> <snip>
> Turns out my function was working correctly all along; but with my typo, I
> was printing out the value from the first checksum each time.  Doh!
>
> Well, no harm done, other than wasted time, and I did turn up a silly but
> harmless off-by-one error in the process.\


I wish I could say that has never bitten me... but it has, several times.
Including the sister bug - continually importing something and you still get
the old function because you forgot to delete the .pyc file. Whoops!

-Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101110/a4bb767a/attachment.html>


More information about the Tutor mailing list