./misc/py-immutables, Immutable collections

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2020Q4, Version: 0.14, Package name: py38-immutables-0.14, Maintainer: pkgsrc-users

An immutable mapping type for Python.

The underlying datastructure is a Hash Array Mapped Trie (HAMT) used in
Clojure, Scala, Haskell, and other functional languages. This implementation is
used in CPython 3.7 in the contextvars module (see PEP 550 and PEP 567 for more
details).

Immutable mappings based on HAMT have O(log N) performance for both set() and
get() operations, which is essentially O(1) for relatively small mappings.


Master sites:

SHA1: 0e22ddf7fbcbf8ccdfae3e7dc6305efb1650d383
RMD160: e49b1a366e66d74be6f8b3377ec61279da12a344
Filesize: 41.976 KB

Version history: (Expand)