iterators (was: python-dev summary)
Jeremy Hylton
jeremy at alum.mit.edu
Fri Feb 16 12:00:31 EST 2001
More information about the Python-list mailing list
Fri Feb 16 12:00:31 EST 2001
- Previous message (by thread): About iterators as a new language feature
- Next message (by thread): iterators (was: python-dev summary)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>>>> "EK" == Erno Kuusela <erno-news at erno.iki.fi> writes: EK> i suspect both map/filter + lambda and list comprehensions are a EK> little confusing for the beginner at first, and require some EK> pondering. but list comprehensions seem like an unnecessary EK> additional way to spell the same thing... at least map/filter EK> are pretty straightforward constructions that build on the basic EK> concept of function. As I said before, I think we just don't agree. List comprehensions build on the basic notions of loops and ifs. I think these are simpler than higher-order functions. EK> also, i find the lack of delimiters between tha parts in a list EK> comprehension a little un-aesthetic. [a*b for b in c if d % 2] EK> ^ ^ I agree with you here, but I don't think anyone had a good solution. Don't remember what was discussed, as we never got around to writing the PEP. Jeremy
- Previous message (by thread): About iterators as a new language feature
- Next message (by thread): iterators (was: python-dev summary)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list