PyTuple
PyTuple is a Python library that provides an immutable, tuple-like data structure designed for safe, functional-style programming and interoperation with Python's existing sequence types. The core type, PyTuple, behaves like a Python tuple but emphasizes immutability and structural sharing to support large, read-only datasets without duplicating substructures.
Design and characteristics: PyTuple stores its elements in a fixed-length sequence; elements can be any Python
API and usage: Creation: PyTuple.from_iterable(iterable) or PyTuple([a, b, c]); immutability means methods that would modify the
Performance and limitations: immutability helps with correctness and thread safety; performance depends on usage; for small
See also: Python tuple, persistent data structure, typed tuples, functional programming utilities.