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

Peng Yu pengyu.ut at
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?


More information about the Python-list mailing list