[ x for x in xrange(10) when p(x) ]
bonono at gmail.com
bonono at gmail.com
Wed Nov 9 22:59:15 EST 2005
I just try to use list/generator expression when possible and found I
need dropwhile/takewhile from time to time and see if there will be a
construct like this.
As I sort of think that the language in general encouraging this
style(like the talk about dropping map/filter/reduce).
Alex Martelli wrote:
> Of course, barring semantically-very-deep optimizations (ones no
> production implementation I know of ANY language would even try). And,
> your POINT would be...?
>
>
> Alex
More information about the Python-list
mailing list