Is there an peekable similar to peekable but in additional allowing one to put some data to it?

Peng Yu pengyu.ut at gmail.com
Wed Jan 11 10:51:19 EST 2017


Hi, peekable from more-itertools only allow peeking an iterator. But
sometimes, one may want to take a look at an element, manipulate it,
then put it back to the iterator. Is there a class in python that can
help do this?

https://pypi.python.org/pypi/more-itertools/

-- 
Regards,
Peng



More information about the Python-list mailing list