On Wed, Oct 06, 2010 at 09:31:48PM +1300, Lawrence D'Oliveiro wrote: > 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.
OK, but you do realise this is a minority opinion within the python community? -- Antoon Pardon -- http://mail.python.org/mailman/listinfo/python-list