number of different lines in a file

pac pac at
Fri May 19 04:33:56 CEST 2006

A generator expression can "share" the parenthesis of a function call.
The syntax is explained in PEP 289, which is also in "What's new" in
the Python 2.4 docs.

Nice line of code!

More information about the Python-list mailing list