• [$] A "frozen" dictionary for Python

    From LWN.net@86:200/23 to All on Thu Dec 4 10:44:29 2025
    Dictionaries are ubiquitous in Python code; they are the data structure of choice for a wide variety of tasks. But dictionaries are mutable, which
    makes them problematic for sharing data in concurrent code. Python has
    added various concurrency features to the language over the last decade or so-async, free threading without the global interpreter lock
    (GIL), and independent subinterpreters-but users must work out their own solution for an immutable dictionary that can be safely shared by
    concurrent code. There are existing modules that could be used, but a recent proposal, PEP 814 ("Add frozendict
    built-in type"), looks to bring the feature to the language itself.

    https://lwn.net/Articles/1047238/
    --- SBBSecho 3.32-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (86:200/23)