FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

the itertools.chain.from_iterable docs should gain a short note pointing readers PEP 798 alternative · Issue #152397 · python/cpython · GitHub

Repository navigation

the itertools.chain.from_iterable docs should gain a short note pointing readers PEP 798 alternative #152397

Closed

Description

Documentation

Per the accepted Ideas discussion (https://discuss.python.org/t/the-itertools-chain-from-iterable-and-itertools-chain-should-include-a-note-referring-to-pep-798-alternatives/107921), the itertools.chain.from_iterable docs should gain a short note pointing readers to the inline unpacking-in-comprehension form added by PEP 798 (e.g. (*it for it in iterables)), as a more readable alternative for simple flattening on 3.15+.
Docs-only; no change to the "roughly equivalent" code, and no deprecation — chain / from_iterable remain useful as first-class callables and for earlier versions.

Linked PRs

Activity

  1. marked duplicate #152395 as a duplicate of this issue on Jun 27, 2026
  2. Twix1288 commented on Jun 27, 2026

    Contributor

    I'd like to work on this. Will submit a PR with a .. note:: block in Doc/library/itertools.rst pointing to PEP 798.

  3. self-assigned this
    on Jun 27, 2026
  4. rhettinger commented on Jun 27, 2026

    Contributor

    Fixed in #152454.

    Added you as a coauthor.

    Thank you for the suggestion.

  5. added a commit that references this issue on Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL