From e967b80a2ecda4cf9f44c2f9a37ad318d30a989e Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Mon, 10 Aug 2026 11:16:10 +0100 Subject: [PATCH] Fix minor issues in clarification introduced by gh-152463 --- Doc/library/ast.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index 0ea183582455cdd..ab2a668f590afd8 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -806,8 +806,11 @@ 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``, + ``{**item for item in items}``, the expression to be expanded goes in + ``key`` and ``value`` is ``None``. + ``generators`` is a list of :class:`comprehension` nodes. .. doctest::