Nested function scope problem
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Sat Jul 22 15:25:18 EDT 2006
Lawrence D'Oliveiro a écrit :
> 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.
This is your right, but it's not the python idiom.
> Besides, your way is sub-optimal.
Care to explain ?
More information about the Python-list
mailing list