James A. Donald wrote:
> James A. Donald:
> 
>> > Surely that means that if I misspell a variable name, my program will
>> > mysteriously fail to work with no error message.
> 
> 
> On Sun, 02 Oct 2005 17:11:13 -0400, Jean-François Doyon 
> 
>>No, the error message will be pretty clear actually :)
> 
> 
> Now why, I wonder,  does this loop never end :-)
>       egold = 0
>       while egold < 10:
>               ego1d = egold+1
> 

A more pythonic style would be:

egold = 0
while egold < 10:
  ego1d += 1

And that one raises a name error !-)


-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to