Skip to content

Commit

Permalink
PEP 448: Fix misleading passage in the abstract (#3573)
Browse files Browse the repository at this point in the history
The passage in the PEP misleads its readers into believing, that
unpacking in comprehensions is supported. This is not the case, as
presented by the abstract itself:

> This PEP does not include unpacking operators inside list, set and
> dictionary comprehensions although this has not been ruled out for
> future proposals.

(Historically, the PEP originally did propose this, but that part of
the PEP was rejected, and the abstract wasn't completely updated.)
  • Loading branch information
MrMino committed Dec 11, 2023
1 parent 8788f88 commit c15cbba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions peps/pep-0448.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ Abstract
This PEP proposes extended usages of the ``*`` iterable unpacking
operator and ``**`` dictionary unpacking operators
to allow unpacking in more positions, an arbitrary number of
times, and in additional circumstances. Specifically,
in function calls, in comprehensions and generator expressions, and
in displays.
times, and in function calls and displays.

Function calls are proposed to support an arbitrary number of
unpackings rather than just one::
Expand Down

0 comments on commit c15cbba

Please sign in to comment.