|
Navigation
Search
|
[$] Unpacking for Python comprehensions
Friday November 21, 2025. 05:09 PM , from LWN.net
Unpacking Python iterables of various sorts, such as dictionaries or lists,
is useful in a number of contexts, including for function arguments, but there has long been a call for extending that capability to comprehensions. PEP 798 ('Unpacking in Comprehensions') was first proposed in June 2025 to fill that gap. In early November, the steering council accepted the PEP, which means that the feature will be coming to Python 3.15 in October 2026. It may be something of a niche feature, but it is an inconsistency that has been apparent for a while—to the point that some Python programmers assume that it is already present in the language.
https://lwn.net/Articles/1046216/
Related News |
25 sources
Current Date
Nov, Fri 21 - 17:37 CET
|







