and [True,True] --> [True, True]?????
Aahz
aahz at pythoncraft.com
Mon Apr 20 16:10:11 EDT 2009
In article <mailman.4205.1240217697.11746.python-list at python.org>,
=?ISO-8859-1?Q?Gerhard_H=E4ring?= <gh at 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 (aahz at 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
More information about the Python-list
mailing list