Nested function scope problem

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sat Jul 22 15:24:33 EDT 2006


Justin Azoff a écrit :
> Simon Forman wrote:
> 
>>That third option seems to work fine.
> 
> 
> Well it does, but there are still many things wrong with it
> 
>     if len(tok) > 0:
> should be written as
>     if(tok):
> 

actually, the parenthesis are useless.



More information about the Python-list mailing list