• [$] Unpacking for Python comprehensions

    From LWN.net@1337:1/100 to All on Friday, November 21, 2025 16:15:08
    [$] Unpacking for Python comprehensions

    Date:
    Fri, 21 Nov 2025 16:09:50 +0000

    Description:
    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 . PEP798 ("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 Python3.15 in
    October2026. It may be something of a niche feature, but it is an inconsistency
    that has been apparent for a whileto the point that some Python programmers assume that it is already present in the language.

    ======================================================================
    Link to news story:
    https://lwn.net/Articles/1046216/


    --- Mystic BBS v1.12 A49 (Linux/64)
    * Origin: tqwNet UK HUB @ hub.uk.erb.pw (1337:1/100)