Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Origin of “list comprehension”

Via Jarno Virtanen, a comp.lang.python post explaining the origin of the term “list comprehension”, Python’s clever alternative syntax for filtering lists (see this chapter of Dive Into Python). The term comes from set theory; it’s nice to know that stuff was worth learning after all ;)

This is Origin of “list comprehension” by Simon Willison, posted on 17th June 2003.

View blog reactions

Next: IRC on your mobile

Previous: Python generators for database result sets

2 comments

  1. The URL for Dive Into Python would appear to be incorrect.

    Adam Keys - 18th June 2003 02:55 - #

  2. So it was... fixed now, thanks.

    Simon Willison - 18th June 2003 03:03 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2003/06/17/setTheory

A django site