A list-like structure which implements collections.abc.MutableSequence
Project description
frozenlist
Introduction
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 <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.
Installation
$ pip install frozenlist
The library requires Python 3.5.3 or newer.
Documentation
Communication channels
aio-libs google group: https://groups.google.com/forum/#!forum/aio-libs
Feel free to post your questions and ideas here.
gitter chat https://gitter.im/aio-libs/Lobby
Requirements
Python >= 3.5.3
License
frozenlist is offered under the Apache 2 license.
Source code
The project is hosted on GitHub
Please file an issue in the bug tracker if you have found a bug or have some suggestions to improve the library.
Changelog
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
Built Distributions
Hashes for frozenlist-1.0.0a0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71f07a3d84a906e207d4c967105a866f58650affc23424f8d7c5c047fb8989a5 |
|
MD5 | 8d5ef2fc1fba287b80341f86ab78dbae |
|
BLAKE2b-256 | 462c4f6872c7e9411ec549778704c278b02d056a8e374ed0b2c05770bead04ae |
Hashes for frozenlist-1.0.0a0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d83d90b8dba34b1a75887105c2f74ce4ca1256c97d9cf0b8b2607310696b37d1 |
|
MD5 | e64db15ce344c000ec9da7437e3b9fe4 |
|
BLAKE2b-256 | 9b58b36958cb6bae55af7460ce572375ece47d969acc4939a8feff9bbe6fa539 |
Hashes for frozenlist-1.0.0a0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c193dc4c3ab9f606e621c74a23ef479a419de7b799b2b08da66dcd62a9e6dff5 |
|
MD5 | 83bd685d4dc170cba6870b064eaabd9a |
|
BLAKE2b-256 | 4bd1239cf166252c65e2800ed82ec2d6a48f26ac9c8bd0729a77ac316a695a26 |
Hashes for frozenlist-1.0.0a0-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b206d84a24d5dd8b4901e7a0350f9f76c94f8afd343ed7d32747da3391f2b55c |
|
MD5 | 376ca0691f3edbf4868c573eb902a4c7 |
|
BLAKE2b-256 | 06eebcfc884b29faa64fa33444a5789564a414cea0052cd4cd85973c9dbfcf6c |
Hashes for frozenlist-1.0.0a0-cp37-cp37m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa3767b7a577aa2040bf85f6adec513525fbe0ddc120fb91922ac20e942afc32 |
|
MD5 | 12aa45d39c4ec79bfca93724bde7470d |
|
BLAKE2b-256 | 8e4f9402fa34aa7fcf65dbfe8663c130670e443dda9fa19c1379ea3e797c03fc |
Hashes for frozenlist-1.0.0a0-cp37-cp37m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8004886cceb41d567e3ac4fc8c0c49af0fa030ce9c89f425cba7cfec630bf375 |
|
MD5 | 888d60bab5724795b834c3e7d77b8d8e |
|
BLAKE2b-256 | ba79a3fd53a0e0d37373bf869fa86db6631b139c34eec06917df8f3c4865c51b |
Hashes for frozenlist-1.0.0a0-cp37-cp37m-macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 354dd773a59bd3e67c0fd19b5cebe9896231e8403c1619004a2bcfe3a6fd81e6 |
|
MD5 | 39570b77760effae3c576dcdd5f126a5 |
|
BLAKE2b-256 | d33b8bbcc17af39443718b00c4dbcc88c67bfbeffa6942aa6411f12b9335cbfe |
Hashes for frozenlist-1.0.0a0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2caf099dc12ba5c20f04b4b4b5e10ff794a66f9ab7e5200a3d0910804b84a2cc |
|
MD5 | d1a8e4a8c228e57bb214912701ea089f |
|
BLAKE2b-256 | f4bb6b9da2a315cc6918716c8751c4e741be77f09a9c9872f5fc91fea3b8dfb0 |
Hashes for frozenlist-1.0.0a0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d56c2eb72fb5c53761f43400bb399e46eeb27e866bd53bef3941877798a05c8b |
|
MD5 | f39fc057cd5f7979722091ead1bc2ec3 |
|
BLAKE2b-256 | 5d3c15215127af661c1d974e1e5cbcb3be3e4b30ed95bc24f2f5089df2f9923b |
Hashes for frozenlist-1.0.0a0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8863ee4e0f41be034647e3ccd5fea084d829d31e1d460e4ed81d0bb7c60e105 |
|
MD5 | 18db1a93795993a3152c1ad2a447f0de |
|
BLAKE2b-256 | 33597e9623757cba14f1a49c35d0a6d9178dad9848d0ea79a1a53ce122302167 |
Hashes for frozenlist-1.0.0a0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bef52255559143aea925ffad96ebe3c23beae304e53935ed7002ba712dfe185e |
|
MD5 | ffd34e7bd9769abfcd15467a30d7b922 |
|
BLAKE2b-256 | 3e77115ff519fe191276f2107e5a29e7e38b3cb19b0ef18241ccccbbbf30d06f |
Hashes for frozenlist-1.0.0a0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88177c1322c9fbd5a399156b58c942a0f390f85e1c99e4b3063c82d316f2d0b3 |
|
MD5 | 4d01d57decb80a43b6a235d63b567f10 |
|
BLAKE2b-256 | df70900cbbf94ccb4d78e1291f33bab2685f88a2bf320e4674694166b01bcd08 |
Hashes for frozenlist-1.0.0a0-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9715a90af1d4605725d4fd6a8a2f2354115bb2dc356b6f028907f9609c96a6bc |
|
MD5 | cb1398b3b0a23e34c4c085f86781fc2f |
|
BLAKE2b-256 | 9ce73cc6e1a441de6c302b8493f22b48ac3a7ba673a676288fef6cf2cf5c37d4 |
Hashes for frozenlist-1.0.0a0-cp36-cp36m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9f515dbb4108fe1879f2a0c919fd5bc3df9a1498df720564bcf6f426f30e18b |
|
MD5 | 21b7bb7ee2dd0c9cad7cb8993880b546 |
|
BLAKE2b-256 | e8996648d27436f56ebf30a486b12bfa06ab3666358e59396580daae0037660b |
Hashes for frozenlist-1.0.0a0-cp36-cp36m-macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73dd9bce1d14a7ef446f5f091f246b54dc15ef73ce6329976870ce76b9520a22 |
|
MD5 | 97c894fe54692ab1d37617b7d0a6c9a4 |
|
BLAKE2b-256 | 80d3f68b5d8a3717ed878b39880b2867a9ff01380ddb3ea7284bf6fa6290fb95 |
Hashes for frozenlist-1.0.0a0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3feef87b08558f03a43114d9aa88a40fac6ad8a3d350f850ed446651752c6a80 |
|
MD5 | 99f2a6bd82607af1da202abf5fbdfb6e |
|
BLAKE2b-256 | 0a2fb4082c8bdf9fe83be4409f84cc0f919b1af98bfbcf476ad5261f2a201787 |
Hashes for frozenlist-1.0.0a0-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a26c687cd86c4cb818943a7351ced705b43f428455e14ffc2dfc5953022cf50 |
|
MD5 | d452e5bc951f9af49e389bcf736ddade |
|
BLAKE2b-256 | 0a8e8b2bed48383aa0d8a0229e4e98d0c2d50843a3d1f5e9ae2fc697761a8be0 |
Hashes for frozenlist-1.0.0a0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95f152f1999f15ab989ad73e8485f9b3851b6abd74aafd3a11dcd83d9bffae2d |
|
MD5 | 0082a423256269edcb8490c53dd52176 |
|
BLAKE2b-256 | 07909fd336cb758580659227226692f8675936458a1424096e2d58603e18535f |
Hashes for frozenlist-1.0.0a0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7ae5bb24bf1b5db68171a0879fdc43a8c9a99acd83d6eb78a585bc6e0e9cbc3 |
|
MD5 | 98da2b9cfb3560927e6e5f2d68289e67 |
|
BLAKE2b-256 | d36812e8f35eab4947eb35c19aca5cfd7db422d966fae9383b25720e27283a85 |
Hashes for frozenlist-1.0.0a0-cp35-cp35m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da9c497173f3aa04d41428007ddd38bea7ad6c9524b66e0bd2808645fef46dc9 |
|
MD5 | adfb911a6fefb635431378b1e69a20d7 |
|
BLAKE2b-256 | 71688122d4c65a39845ebe964f27d672edd0c4b3ab96cae66ef9f59b56c8e771 |
Hashes for frozenlist-1.0.0a0-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f187ac52d1b4e3751c761ecb0426e649deb941cf0d7ea8f43ec3078d33f5086 |
|
MD5 | 46389cd7dfc83abc41e48303c8722edb |
|
BLAKE2b-256 | 78afcfe16ac12882ea0acba89e1ba85b64ad4b533f03f2d6815e0913f74d69ac |
Hashes for frozenlist-1.0.0a0-cp35-cp35m-macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 522adc5167731247c9fdb9f70152da77cd679adc119b460b828ed1ce1e91a827 |
|
MD5 | 9de2ae006659282c48cbc787ad7df2d2 |
|
BLAKE2b-256 | c5d8f51cf798fb5a2cda0eb286a773374ebe36b69c059626ae91f4395ce5d196 |