parsing a file [newbie]

Syver Enstad syver at NOSPAMcyberwatcher.com
Thu Jan 18 15:23:11 EST 2001


"Grant Edwards" <grante at visi.com> wrote
 I could have used a list comprehension instead of a
> for loop.

Ouch, I feel really stupid to have to ask this question, but what the ... is
a list comprehension, and why is it better to use it than a for statement?





More information about the Python-list mailing list