From e6bf3919106cd94fc37b701754d2adec90e26fa4 Mon Sep 17 00:00:00 2001 From: AkhilByju <99003217+AkhilByju@users.noreply.github.com> Date: Wed, 5 Aug 2026 09:20:07 -0700 Subject: [PATCH] gh-151925: Clarify ast.DictComp.value for dict unpacking (GH-152463) (cherry picked from commit 4bbc20bd6dc9418a89d77f0b268aaec8843bf9d0) Co-authored-by: AkhilByju <99003217+AkhilByju@users.noreply.github.com> --- Doc/library/ast.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index 5bdfe7c182de3ac..0ea183582455cdd 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::