Skip to main content

An immutable list

Project description

An immutable list.

Build status Coverage Status

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


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 details)

Uploaded Source

Built Distribution

frozenlist2-1.0.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file frozenlist2-1.0.0.tar.gz.

File metadata

  • Download URL: frozenlist2-1.0.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for frozenlist2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 33f6c6bb2c7d38524ec3c2d6f2d8a3ee2625a9e13096d8bc64db012b516a95e0
MD5 a0b620b0d9e7330d7289747baa6395dd
BLAKE2b-256 06cfe445fb2e36ea006e9e20012aec3c6290929bfe80bc017d74abd584b4e97c

See more details on using hashes here.

Provenance

File details

Details for the file frozenlist2-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: frozenlist2-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for frozenlist2-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 caffe66813e42de320b10d08b8c0604c7eb3f142a8482ad3130243e084f37a2f
MD5 7982d985b029be083a6dd1b8ace7918b
BLAKE2b-256 861ad1b8618c6f41e8d9d120b421da02191ff0240f41ebef63867decca89dbaa

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page