Typo of the Month, October Edition

Here’s what a ‘copy-n-paste’ in a moment of hurry can cause. This typo
wen’t unnoticed for almost a whole day, and then I stared at the
result for about a minute, wondering if I had been slashdotted. This
code was in a the statistics counter of a experimental cache manager I
wrote this morning (more about the cache manager when I recover):

>>> h = [0]
>>> h[0] += h[0] + 1; h
[1]
>>> h[0] += h[0] + 1; h
[3]
>>> h[0] += h[0] + 1; h
[7]
>>> h[0] += h[0] + 1; h
[15]
>>> h[0] += h[0] + 1; h
[31]
>>> h[0] += h[0] + 1; h
[63]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s