Paul Rubin writes:

> I think Python's version of iterators is actually buggy and at least
> the first element of the rest of the sequence should be preserved.
> There are ways to fake it but they're too messy for something like
> this.  It should be the default and might have been a good change for
> Python 3.

It could still be added as an option, to both takewhile and iter(_, _).
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to