Bruno Desthuilliers wrote:
> Andy Dingley <[EMAIL PROTECTED]> wrote:
> > Simon Forman wrote:
> >
> >>There's more to it, but that's the basic idea.
> >
> > This much I knew, but _why_ and _when_ would I choose to use list
> > comprehension (for good Python style), rather than using a simple
> > "traditional" loop ?
> 
> Whenever it's more readable.
> 

Yeah.  Also, it's faster.

~Simon

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

Reply via email to