An immutable list
An immutable list.
This library provides a simple immutable list class for Python.
- drop-in replacement for
- hashable (if list contents are hashable)
frozenlist2 package from PyPI.
pip install frozenlist2
from frozenlist2 import frozenlist # Make a list elems = frozenlist([1, 2, 4, 8]) # Attempt to modify it elems.append(16) # Will raise exception!
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size frozenlist2-0.1.0.tar.gz (14.8 kB)||File type Source||Python version None||Upload date||Hashes View|