[Python-Dev] list comprehensions again...
Paul Prescod
paul@prescod.net
Wed, 12 Jul 2000 06:27:44 -0500
Greg Stein wrote:
>
> ...
>
> Agreed, to a point.
>
> The counter-point is: "let's introduce syntax to make FOO more readable.
> great. now lets introduce syntax to make BAR more readable. sweet. how about
> BAZ?"
>
> There are a lot of common idioms in Python. How many do you want to add
> *syntax* for?
In this case, we're replacing four conventions:
map( None, a, [b]*len(a))
map( lambda x: ... )
filter( lambda x: ...)
a=[]
for i in j:
a.append( something( i ))
--
Paul Prescod - Not encumbered by corporate consensus
Simplicity does not precede complexity, but follows it.
- http://www.cs.yale.edu/~perlis-alan/quotes.html