https://github.com/python/cpython/commit/606df1be0b910f8bd2c06fe0478f20c77c0908a4 commit: 606df1be0b910f8bd2c06fe0478f20c77c0908a4 branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2026-08-06T16:11:16+03:00 summary:
[3.15] gh-151925: Clarify ast.DictComp.value for dict unpacking (GH-152463) (#155252) Co-authored-by: AkhilByju <[email protected]> files: M Doc/library/ast.rst diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index 5bdfe7c182de3a..0ea183582455cd 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -806,7 +806,8 @@ Comprehensions List and set comprehensions, generator expressions, and dictionary comprehensions. ``elt`` (or ``key`` and ``value``) is a single node representing the part that will be evaluated for each item. - + For dictionary comprehensions using unpacking, for example + ``{**item for item in items}``, ``value`` is ``None``, ``generators`` is a list of :class:`comprehension` nodes. .. doctest:: _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
