map/filter/reduce/lambda opinions and background unscientific mini-survey

Terry Hancock hancock at anansispaceworks.com
Thu Jul 7 16:51:00 EDT 2005


On Wednesday 06 July 2005 08:38 am, Tom Anderson wrote:
> On Wed, 6 Jul 2005, Terry Hancock wrote:
> > With list comprehensions and generators becoming so integral, I'm
> > not sure about "unpythonic".
> 
> I'm going to resist the temptation to argue that list comps are themselves 
> unpythonic :).

Ah, but GvR likes them, so that pretty much makes them "pythonic"
by definition, doesn't it?  ;-)

> Hang on, where's the punctuation in either of those? They *are* done with 
> keywords! 

Yeah, that's true, and it could be true here too, if you throw away the
[].  I see that's one of the proposed alternatives.

--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks  http://www.anansispaceworks.com




More information about the Python-list mailing list