put-back-iterator

A drop-in replacement for `iter(iterable)` that allows **putting items back** after consuming them. Ideal for parsing, lexing, and other scenarios requiring lookahead or backtracking.

Installation

In a virtualenv (see these instructions if you need to create one):

pip3 install put-back-iterator

Releases

Version Released Bullseye
Python 3.9
Bookworm
Python 3.11
Files
0.1.0a0 pre-release 2025-07-02

Issues with this package?

Page last updated 2025-07-02 03:03:43 UTC