List comprehension

Roy Katz katz at Glue.umd.edu
Sat Sep 2 06:17:32 CEST 2000


Hello,


While browsing the 2.0 feature list, I found this neat little 'List
Comprehension' facility.  Guido mentioned it in his interview with
linux.com [1] and I've been intrigued by it ever since. 

Does anyone have more examples of how and when to use this (as in,
actual code)?  I'm itching to try and find ways to optimize my programs
with it. 



Thanks,

Roey Katz


1.  http://linux.com/development/newsitem.phtml?sid=63&aid=10578




More information about the Python-list mailing list