frozenlist 1.3.3-1build1 source package in Ubuntu

Changelog

frozenlist (1.3.3-1build1) lunar; urgency=medium

  * No-change rebuild with Python 3.11 only

 -- Graham Inggs <email address hidden>  Fri, 17 Mar 2023 09:30:21 +0000

Upload details

Uploaded by:
Graham Inggs
Uploaded to:
Lunar
Original maintainer:
Debian Python Team
Architectures:
any
Section:
misc
Urgency:
Medium Urgency

See full publishing history Publishing

Series Pocket Published Component Section
Lunar release universe misc

Downloads

File Size SHA-256 Checksum
frozenlist_1.3.3.orig.tar.gz 65.0 KiB 58bcc55721e8a90b88332d6cd441261ebb22342e238296bb330968952fbb3a6a
frozenlist_1.3.3-1build1.debian.tar.xz 2.2 KiB c29ed036ed59396d05e45dfb07d17ab4e3f834f5a888ffd4afbc43dafcfd8102
frozenlist_1.3.3-1build1.dsc 2.0 KiB 9b5d695a9bca03f2617c0ccc03d7b9700b5fd60ce42eaa67b83acaeff574ba10

View changes file

Binary packages built by this source

python3-frozenlist: 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
  <FrozenList(frozen=False, [17, 42, 'spam', 'Vikings'])>
  >>> fl.freeze()
  >>> fl
  <FrozenList(frozen=True, [17, 42, 'spam', 'Vikings'])>
  >>> fl.frozen
  True
  >>> fl.append("Monty")
  Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   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 "<stdin>", line 1, in <module>
   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
  {<FrozenList(frozen=True, [1, 2])>: 'Vikings'}

python3-frozenlist-dbgsym: debug symbols for python3-frozenlist