Nested function scope problem

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sat Jul 22 01:17:50 EDT 2006


In message <1153537336.305790.311650 at m79g2000cwm.googlegroups.com>, Justin 
Azoff wrote:

> 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):

I prefer the first way. Besides, your way is sub-optimal.



More information about the Python-list mailing list