Raymond Hettinger added the comment:

> I'll leave it to Raymond to decide if it is worth 
> making a special-case optimization :)

Special cases aren't special enough ...  :-)

The itertools are specifically designed to work with general iterators, not 
just sequences.

> Does anyone think a general sequenceview class would make sense

You could post one on PyPi but I don't think there would be any uptake.  It is 
often easier to write a simple generator customized to your particular needs 
than it is to learn and remember a new class to handle an infrequent 
use case.

----------
assignee:  -> rhettinger
resolution:  -> not a bug
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21744>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to