python3-frozenlist binary package in Ubuntu Lunar arm64
`frozenlist.
`collections.
is called, after which list modifications raise `RuntimeError`:
.
>>> from frozenlist import FrozenList
>>> fl = FrozenList([17, 42])
>>> fl.append('spam')
>>> fl.append(
>>> fl
<FrozenList(
>>> fl.freeze()
>>> fl
<FrozenList(
>>> fl.frozen
True
>>> fl.append("Monty")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "frozenlist/
self.
File "frozenlist/
raise RuntimeError(
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 "<stdin>", line 1, in <module>
File "frozenlist/
raise RuntimeError(
RuntimeError: Cannot hash unfrozen list.
>>> fl.freeze()
>>> hash(fl)
3713081631934
>>> dictionary = {fl: 'Vikings'} # frozen fl can be a dict key
>>> dictionary
{<FrozenList(
Publishing history
Date | Status | Target | Component | Section | Priority | Phased updates | Version | ||
---|---|---|---|---|---|---|---|---|---|
2023-03-17 14:38:48 UTC | Published | Ubuntu Lunar arm64 | release | universe | python | Optional | 1.3.3-1build1 | ||
|
|||||||||
Deleted | Ubuntu Lunar arm64 | proposed | universe | python | Optional | 1.3.3-1build1 | |||
|
|||||||||
2023-03-17 14:39:20 UTC | Superseded | Ubuntu Lunar arm64 | release | universe | python | Optional | 1.3.3-1 | ||
|
|||||||||
2023-03-18 18:10:10 UTC | Deleted | Ubuntu Lunar arm64 | proposed | universe | python | Optional | 1.3.3-1 | ||
|
|||||||||
2022-11-21 18:06:10 UTC | Superseded | Ubuntu Lunar arm64 | release | universe | python | Optional | 1.2.0-1build1 | ||
|