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.
Metadata
Release files for frozenlist2 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| frozenlist2-1.0.0.tar.gz | 15.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| frozenlist2-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.2 kB
Release files / frozenlist2-1.0.0.tar.gz
| Download URL | frozenlist2-1.0.0.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33f6c6bb2c7d38524ec3c2d6f2d8a3ee2625a9e13096d8bc64db012b516a95e0
|
|
BLAKE2b-256 checksum How to use checksums |
06cfe445fb2e36ea006e9e20012aec3c6290929bfe80bc017d74abd584b4e97c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|
Release files / frozenlist2-1.0.0-py3-none-any.whl
| Download URL | frozenlist2-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
caffe66813e42de320b10d08b8c0604c7eb3f142a8482ad3130243e084f37a2f
|
|
BLAKE2b-256 checksum How to use checksums |
861ad1b8618c6f41e8d9d120b421da02191ff0240f41ebef63867decca89dbaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|