This is a tracking issue for implementing PEP 798 (Unpacking in Comprehensions).
gh-143055: Implementation of PEP 798 (#143056)
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?
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!
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.
pythongh-143055: Implementation of PEP 798 (python#143056)
Reopening for #145556, the AST unparser was not updated appropriately.
gh-143055: Fix crash in AST unparser when unparsing dict comprehensio…
pythongh-143055: Fix crash in AST unparser when unparsing dict compre…
pythongh-143055: address review (fix throw() arity crash, doc precision)
pythongh-143055: register _PyAsyncGenUnpack_Type with the C globals a…
pythongh-143055: Delegate to subiterators when unpacking in generator…
Activity
gh-143055: Implementation of PEP 798 (#143056)
hugovk commented on Feb 6, 2026
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?
adqm commented on Feb 7, 2026
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!
hugovk commented on Feb 7, 2026
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.
pythongh-143055: Implementation of PEP 798 (python#143056)
StanFromIreland commented on Mar 9, 2026
Reopening for #145556, the AST unparser was not updated appropriately.
gh-143055: Fix crash in AST unparser when unparsing dict comprehensio…
pythongh-143055: Fix crash in AST unparser when unparsing dict compre…
pythongh-143055: address review (fix throw() arity crash, doc precision)
pythongh-143055: register _PyAsyncGenUnpack_Type with the C globals a…
pythongh-143055: Delegate to subiterators when unpacking in generator…
pythongh-143055: address review (fix throw() arity crash, doc precision)
pythongh-143055: register _PyAsyncGenUnpack_Type with the C globals a…