Well sorry about it, I didn't know about that PEP 8 line, disregard this
thread then :)
On Fri, Nov 4, 2016 at 2:29 PM, Raymond Hettinger <
raymond.hettin...@gmail.com> wrote:
>
> > On Nov 3, 2016, at 3:51 PM, Steven D'Aprano wrote:
> >
> > Before there can be a solution,
Stephen, dropwhile(None, ...) was an example, takewhile(None, ...) doesn't
works either and it makes a lot of sense IMO.
On Thu, Nov 3, 2016 at 7:07 AM, Stephen J. Turnbull <
turnbull.stephen...@u.tsukuba.ac.jp> wrote:
> Francisco Couzo writes:
>
> > I'd be interested in writi
Some functions that take a predicate from itertools accept None as its
predicate:
>>> list(itertools.filterfalse(None, range(10)))
[0]
>>> list(itertools.groupby([0,0,1,1], None))
[(0, ), (1,
)]
While others don't:
>>> list(itertools.dropwhile(None, range(10)))
Traceback (most recent call