Is there a better/simpler way to filter blank lines?

Ben Finney bignose+hates-spam at benfinney.id.au
Tue Nov 4 20:06:42 EST 2008


Falcolas <garrickp at gmail.com> writes:

> Using the surrounding parentheses creates a generator object

No. Using the generator expression syntax creates a generator object.

Parentheses are irrelevant to whether the expression is a generator
expression. The parentheses merely group the expression from
surrounding syntax.

-- 
 \       “bash awk grep perl sed, df du, du-du du-du, vi troff su fsck |
  `\                     rm * halt LART LART LART!” —The Swedish BOFH, |
_o__)                                            alt.sysadmin.recovery |
Ben Finney



More information about the Python-list mailing list