In article <mailman.4205.1240217697.11746.python-l...@python.org>,
=?ISO-8859-1?Q?Gerhard_H=E4ring?=  <g...@ghaering.de> 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 (a...@pythoncraft.com)           <*>         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

Reply via email to