"no variable or argument declarations are necessary."

bruno modulix onurb at xiludom.gro
Mon Oct 3 09:13:43 EDT 2005


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 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list