Documentation
I’m using Python 3.13 and learning about itertools.tee from the official Python documentation. I copied the example code for the lookahead function, but when I ran it in the REPL, the output wasn’t the same as described in the documentation.
Look at the pictures below for more details about the diffrent output between REPL and documentation.


Enviroment
- Windows 11 23H2 22631.4602
- Python 3.13.0 (tags/v3.13.0:60403a5, Oct 7 2024, 09:38:07) [MSC v.1941 64 bit (AMD64)] on win32