| 1 |
Source: python-frozendict |
| 2 |
Section: python |
| 3 |
Priority: optional |
| 4 |
Maintainer: Debian OpenStack <[email protected]> |
| 5 |
Uploaders: |
| 6 |
Thomas Goirand <[email protected]>, |
| 7 |
Andrej Shadura <[email protected]>, |
| 8 |
Edward Betts <[email protected]>, |
| 9 |
Build-Depends: |
| 10 |
debhelper-compat (= 13), |
| 11 |
dh-sequence-python3, |
| 12 |
python3-all, |
| 13 |
python3-setuptools, |
| 14 |
Build-Depends-Indep: |
| 15 |
python3-pytest <!nocheck>, |
| 16 |
Rules-Requires-Root: no |
| 17 |
Standards-Version: 4.7.0 |
| 18 |
Vcs-Browser: https://salsa.debian.org/openstack-team/python/python-frozendict |
| 19 |
Vcs-Git: https://salsa.debian.org/openstack-team/python/python-frozendict.git |
| 20 |
Homepage: https://github.com/Marco-Sulla/python-frozendict |
| 21 |
|
| 22 |
Package: python3-frozendict |
| 23 |
Architecture: all |
| 24 |
Depends: |
| 25 |
${misc:Depends}, |
| 26 |
${python3:Depends}, |
| 27 |
Description: immutable dictionary |
| 28 |
Frozendict is an immutable wrapper around dictionaries that implements the |
| 29 |
complete mapping interface. It can be used as a drop-in replacement for |
| 30 |
dictionaries where immutability is desired. |
| 31 |
. |
| 32 |
Of course, this is Python, and you can still poke around the object's |
| 33 |
internals if you want. |
| 34 |
. |
| 35 |
The frozendict constructor mimics dict, and all of the expected interfaces |
| 36 |
(iter, len, repr, hash, getitem) are provided. Note that a frozendict does not |
| 37 |
guarantee the immutability of its values, so the utility of hash method is |
| 38 |
restricted by usage. |
| 39 |
. |
| 40 |
The only difference is that the copy() method of frozendict takes variable |
| 41 |
keyword arguments, which will be present as key/value pairs in the new, |
| 42 |
immutable copy. |