How about adding slice notation to iterators/generators?

Carl Banks pavlovevidence at gmail.com
Sat Oct 17 02:38:44 CEST 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