]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-151925: Clarify ast.DictComp.value for dict unpacking (GH-152463)
authorAkhilByju <99003217+AkhilByju@users.noreply.github.com>
Wed, 5 Aug 2026 16:20:07 +0000 (09:20 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Aug 2026 16:20:07 +0000 (16:20 +0000)
Doc/library/ast.rst

index 5bdfe7c182de3ac74b6fef80ece6f143d3c868c5..0ea183582455cddaf2d17758395566c29fc62931 100644 (file)
@@ -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::