a break for comprehensions
Peter Hansen
peter at engcorp.com
Fri Jul 27 21:24:19 EDT 2001
Tom Jenkins wrote:
>
> >>>>>>"PH" == Peter Hansen <peter at engcorp.com> writes:
> > PH> In my post I was attempting to point out that I find list
> > PH> comprehensions less readable than the equivalent, longer but
> > PH> more explicit while loop version, not that one list comprehension
> > PH> is more or less cryptic than another.
[...]
> I couldn't read list comprehensions until I actually started playing
> around with them. After experimenting and writing (oh about 3 or 4) I
> discovered I could read them ;)
These responses are good to hear. I'm happy to know that
after only 5 or 6 experiments (I'm a little slower than you
guys :-), I'll find list comprehensions less cryptic and
much more readable.
--
----------------------
Peter Hansen, P.Eng.
peter at engcorp.com
More information about the Python-list
mailing list