Nitpicking - slightly misleading traceback

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Thu Jan 26 09:15:33 EST 2006


Juho Schultz enlightened us with:
> However, the bug sits on the next line. [...] I feel the traceback
> is misleading.

Well, the bug sits in the command starting on the line indicated.

Nitpick back: Learn about operator precedence and Python syntax rules.
You don't need so many brackets:

if data[x][y] > 0 or datadict.has_key(key):

This might even make things fit on one line again ;-)

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list