frozendict
A simple immutable dictionary for Python
frozendict
Descrizione
frozendict is a simple immutable dictionary. It's fast as dict, and sometimes faster!
Unlike other similar implementations, immutability is guaranteed: you can't change the internal variables of the class, and they are all immutable objects. Reinvoking __init__ does not alter the object.
The API is the same as dict, without methods that can change the immutability. So it supports also fromkeys, unlike other implementations. Furthermore it can be pickled, unpickled and have an hash, if all values are hashable.
You can also add any dict to a frozendict using the | operator. The result is a new frozendict.
Installa
Canale stable v2.3.8-2
Questa app e' curata in HaikuPorts. Installala da li', e' gia' disponibile in HaikuDepot.
pkgman install frozendict
Attenzione: il file arriva dal server di HaikuPorts, ma installarlo a mano non è la strada consigliata. È «pkgman» a risolvere le dipendenze che un .hpkg non porta con sé: un pacchetto installato da solo potrebbe non partire. Usa il comando pkgman qui sopra, a meno che tu non sappia esattamente perché ti serve il file.