How about adding slice notation to iterators/generators?

Carl Banks pavlovevidence at gmail.com
Fri Oct 16 20:38:44 EDT 2009


On Oct 16, 2:28 pm, Eloff <dan.el... at gmail.com> wrote:
> As long as it breaks no rationally existing code, I can think of no
> good reason why not to do this in a future python.

You would burden everyone who writes a custom iterator to provide a
__getitem__ method just because you're too lazy to type out the word
islice?


Carl Banks



More information about the Python-list mailing list