Skip to content

gh-123884 Tee of tee was not producing n independent iterators#124490

Merged
rhettinger merged 9 commits intopython:mainfrom
rhettinger:tee1
Sep 25, 2024
Merged

gh-123884 Tee of tee was not producing n independent iterators#124490
rhettinger merged 9 commits intopython:mainfrom
rhettinger:tee1

Conversation

@rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Sep 25, 2024

  • Eliminates the code path that reused a tee object input as part of the output.
  • Updated the rough equivalent recipe to have better fidelity to the actual C code.
  • Removed a note about using the tee input. It is generically true of all iterator pass throughs and the note made it seem like a caution specific to tee where a tee-of-a-tee is the exception to the rule.

📚 Documentation preview 📚: https://cpython-previews--124490.org.readthedocs.build/

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants