GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Implement PEP 798 – Unpacking in Comprehensions · Issue #143055 · python/cpython

Implement PEP 798 – Unpacking in Comprehensions #143055

New issue
Copy link
New issue
Copy link
Closed
Closed
Implement PEP 798 – Unpacking in Comprehensions#143055
Copy link
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement

Description

@adqm
adqm
opened on Dec 21, 2025
Issue body actions

Proposal:

This is a tracking issue for implementing PEP 798 (Unpacking in Comprehensions).

Links to previous discussion of this feature:

  • https://discuss.python.org/t/pre-pep-unpacking-in-comprehensions/96362
  • https://discuss.python.org/t/pep-798-unpacking-in-comprehensions/99435

Linked PRs

  • gh-143055: Implementation of PEP 798 #143056
  • gh-143055: Fix crash in AST unparser when unparsing dict comprehension unpacking #145556
  • gh-143055: Delegate to subiterators when unpacking in generator expressions #152550
Reacted by Bartosz Sławecki, Ilya Solin, Accurio and Denis Staritin

Activity

  1. adqm
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Dec 21, 2025
  2. aisk
    added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Dec 22, 2025
  3. JelleZijlstra
    added a commit that references this issue on Jan 31, 2026

    gh-143055: Implementation of PEP 798 (#143056)

    ccbe41e
  4. hugovk commented on Feb 6, 2026

    @hugovk
    hugovk
    on Feb 6, 2026
    Member
    More actions

    Good work, #143056 is merged and will be in next week's 3.15 alpha 6! 🎉

    Anything else to do here, or shall we close this issue?

    Reacted by adam j hartz
  5. adqm commented on Feb 7, 2026

    @adqm
    adqm
    on Feb 7, 2026
    ContributorAuthor
    More actions

    Yep, I think we're good here! The initial implementation is done, and I feel like if anything comes up with it, it'd probably be better as a new issue. I'll go ahead and close this now; thanks!

    Reacted by Hugo van Kemenade
  6. adqm
    closed this as completedon Feb 7, 2026
  7. hugovk commented on Feb 7, 2026

    @hugovk
    hugovk
    on Feb 7, 2026
    Member
    More actions

    Sounds good! Would you like to open a PR to mark the PEP as Final? There's a checklist at https://github.com/python/peps/blob/main/.github/PULL_REQUEST_TEMPLATE/Mark%20a%20PEP%20as%20Final.md.

    Reacted by adam j hartz
  8. thunder-coding
    added a commit that references this issue on Feb 15, 2026

    pythongh-143055: Implementation of PEP 798 (python#143056)

    7bfd8a4
  9. hugovk
    changed the title [-]Implement PEP 798[/-] [+]Implement PEP 798 – Unpacking in Comprehensions[/+] on Feb 20, 2026
  10. StanFromIreland commented on Mar 9, 2026

    @StanFromIreland
    StanFromIreland
    on Mar 9, 2026
    Member
    More actions

    Reopening for #145556, the AST unparser was not updated appropriately.

  11. StanFromIreland
    reopened this on Mar 9, 2026
  12. JelleZijlstra
    added a commit that references this issue on Mar 9, 2026

    gh-143055: Fix crash in AST unparser when unparsing dict comprehensio…

    255e79f
  13. StanFromIreland
    closed this as completedon Mar 9, 2026
  14. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-143055: Fix crash in AST unparser when unparsing dict compre…

    2a6a86f
  15. graingert
    added 5 commits that reference this issue on Jun 29, 2026

    pythongh-143055: address review (fix throw() arity crash, doc precision)

    cd25639

    pythongh-143055: register _PyAsyncGenUnpack_Type with the C globals a…

    2fdf024

    pythongh-143055: Delegate to subiterators when unpacking in generator…

    c1e0905

    pythongh-143055: address review (fix throw() arity crash, doc precision)

    cd4bf33

    pythongh-143055: register _PyAsyncGenUnpack_Type with the C globals a…

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.