immutable dictionary
Project homepage: https://github.com/slezica/python-frozendict
Description
frozendict is an immutable wrapper around dictionaries that implements the
complete mapping interface. It can be used as a drop-in replacement for
dictionaries where immutability is desired.
Of course, this is Python, and you can still poke around the object's internals
if you want.
The frozendict constructor mimics dict, and all of the expected interfaces
(iter, len, repr, hash, getitem) are provided. Note that a frozendict does not
guarantee the immutability of its values, so the utility of hash method is
restricted by usage.
The only difference is that the copy() method of frozendict takes variable
keyword arguments, which will be present as key/value pairs in the new,
immutable copy.
Package information
- Ports path
- devel/py-frozendict
- Package architecture
- amd64
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- devel, lang/python
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Runtime
Build
- lang/python/3
- devel/py-build
- devel/py-installer
- devel/py-setuptools py3-setuptools->=79v0
- devel/py-wheel
Test
Used by (2 dependency relationships)
Includes library, runtime, build and test dependencies.