How to Install and Uninstall python3-frozenlist Package on Kali Linux

Last updated: November 07,2024

1. Install "python3-frozenlist" package

Please follow the guidance below to install python3-frozenlist on Kali Linux

$ sudo apt update $ sudo apt install python3-frozenlist

2. Uninstall "python3-frozenlist" package

This tutorial shows how to uninstall python3-frozenlist on Kali Linux:

$ sudo apt remove python3-frozenlist $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-frozenlist package on Kali Linux

Package: python3-frozenlist
Source: frozenlist (1.4.0-1)
Version: 1.4.0-1+b1
Installed-Size: 237
Maintainer: Debian Python Team
Architecture: amd64
Depends: python3 (<< 3.13), python3 (>= 3.11~), python3:any, libc6 (>= 2.4)
Size: 59992
SHA256: 80ce7c93daedcd7550205af9ee085c15feeaec4a632589422a622ebdc3a2f6ac
SHA1: 126685022a8c4fc2f4836f9e67871b4547374f3f
MD5sum: 1f759e0fc61c03324690b00037c7179c
Description: list-like structure which implements collections.abc.MutableSequence
`frozenlist.FrozenList` is a list-like structure which implements
`collections.abc.MutableSequence`. The list is mutable until `FrozenList.freeze`
is called, after which list modifications raise `RuntimeError`:
.
>>> from frozenlist import FrozenList
>>> fl = FrozenList([17, 42])
>>> fl.append('spam')
>>> fl.append('Vikings')
>>> fl

>>> fl.freeze()
>>> fl

>>> fl.frozen
True
>>> fl.append("Monty")
Traceback (most recent call last):
File "", line 1, in
File "frozenlist/_frozenlist.pyx", line 97, in frozenlist._frozenlist.FrozenList.append
self._check_frozen()
File "frozenlist/_frozenlist.pyx", line 19, in frozenlist._frozenlist.FrozenList._check_frozen
raise RuntimeError("Cannot modify frozen list.")
RuntimeError: Cannot modify frozen list.
.
FrozenList is also hashable, but only when frozen. Otherwise it also throws a RuntimeError:
.
>>> fl = FrozenList([17, 42, 'spam'])
>>> hash(fl)
Traceback (most recent call last):
File "", line 1, in
File "frozenlist/_frozenlist.pyx", line 111, in frozenlist._frozenlist.FrozenList.__hash__
raise RuntimeError("Cannot hash unfrozen list.")
RuntimeError: Cannot hash unfrozen list.
>>> fl.freeze()
>>> hash(fl)
3713081631934410656
>>> dictionary = {fl: 'Vikings'} # frozen fl can be a dict key
>>> dictionary
{: 'Vikings'}
Description-md5:
Homepage: https://github.com/aio-libs/frozenlist
Section: python
Priority: optional
Filename: pool/main/f/frozenlist/python3-frozenlist_1.4.0-1+b1_amd64.deb