In article <[email protected]>,
=?ISO-8859-1?Q?Gerhard_H=E4ring?= <[email protected]> wrote:
>
>I prefer to write it explicitly:
>
>if len(lst) > 0:
> ...
At the very least, IMO you should write this as
if len(lst):
...
There's no reason to be explicit about the numeric comparison.
--
Aahz ([email protected]) <*> http://www.pythoncraft.com/
"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur." --Red Adair
--
http://mail.python.org/mailman/listinfo/python-list