In message <mailman.1384.1286348190.29448.python-l...@python.org>, Antoon 
Pardon wrote:

> A lot of times someone comes with code like the following:
> 
>   if len(lst) != 0:
>     ...
> 
> 
> and than gets the advise to write it as follows:
> 
>   if lst:
>     ...
> 
> Do you mean that this second piece of code is incorrectly written ...

Yes.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to