![](https://secure.gravatar.com/avatar/e0ec20df0fae456afa4cfeb81725e42d.jpg?s=120&d=mm&r=g)
May 3, 2004
3:41 a.m.
"Russell E. Owen" <rowen@cesmail.net>:
Personally, I'd only like to see generator expressions added to Python if they can allow list comprehensions to be deprecated -- to avoid language clutter.
That's possible in the sense that a list comprehension can be written as list(generator_expression). But it will still be necessary to decide whether to wrap a list() around it. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+