Skip to content

Docs: the result of running example code of itertools.tee is not correct #128372

@Snoopy1866

Description

@Snoopy1866

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.

image

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsdocsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions