An immutable list
Project description
An immutable list.
This library provides a simple immutable list class for Python.
- drop-in replacement for
list
- hashable (if list contents are hashable)
Installation
Install the frozenlist2
package from PyPI.
pip install frozenlist2
Usage Example
from frozenlist2 import frozenlist
# Make a list
elems = frozenlist([1, 2, 4, 8])
# Attempt to modify it
elems.append(16) # Will raise exception!
License
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
frozenlist2-1.0.0.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for frozenlist2-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caffe66813e42de320b10d08b8c0604c7eb3f142a8482ad3130243e084f37a2f |
|
MD5 | 7982d985b029be083a6dd1b8ace7918b |
|
BLAKE2b-256 | 861ad1b8618c6f41e8d9d120b421da02191ff0240f41ebef63867decca89dbaa |