That's called 'list comprehension': http://docs.python.org/tutorial/datastructures.html#list-comprehensions
--On Thu, Nov 17, 2011 at 8:14 PM, Lee Buckingham <lee.buckingham@xxxxxxxxx> wrote:
filenames = [f for f in filenames if f.endswith(".png")]
Slick! I learn so much listening to you guys and your questions.
Jake