PEP 289: Generator Expressions (please comment)

Mike Rovner mike at nospam.com
Thu Oct 23 21:07:25 EDT 2003


rzed wrote:
> I like it! How about in conjunction with the print statement?
> print "%s\n" % (s for s in strlist)

It's not better than

for s in strlist:
  print s

or I didn't understand your intent.

Mike








More information about the Python-list mailing list