[Python-ideas] Two small functional-style-related improvements
Jan Kaliszewski
zuo at chopin.edu.pl
Sun Mar 27 16:41:31 CEST 2011
Ben Finney dixit (2011-03-28, 00:16):
> Jan Kaliszewski <zuo at chopin.edu.pl> writes:
>
> > But anyway, I'd prefer filter(is_none, iterable)
> > :)
>
> Feel free to write such a function for your code, then. I don't see how
> it's important enough to be in the Python standard library.
But what about dropwhile, takewhile and other predicate-based
functions that do not have simple gen-exp/comprehension counterparts?
Redards.
*j
More information about the Python-ideas
mailing list