https://github.com/python/cpython/commit/ed38a08a4abf15f9a537c2c17b167872b5f30582 commit: ed38a08a4abf15f9a537c2c17b167872b5f30582 branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: encukou <[email protected]> date: 2026-08-12T13:26:51Z summary:
[3.15] gh-151925: Fix minor issues in clarification introduced by gh-152463 (GH-155480) (GH-155626) (cherry picked from commit b11e749f7590e9a0907db908fa3e7e76c772c28f) Co-authored-by: Stan Ulbrych <[email protected]> files: M Doc/library/ast.rst diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index 0ea183582455cd..ab2a668f590afd 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:: _______________________________________________ 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]
