Building Custom Sequence Types in Python: A Deep Dive
Python categorizes sequence types in to several families. Container sequences (like list, tuple, and deque) can hold items of mixed types. Flat sequences (like str, bytes, bytearray, and array.array) store homogeneous data and are iterable with for loops. Mutable sequences (list, deque, bytearray, array) allow in-place modification, while immut ...
Posted on Fri, 09 Oct 2026 16:16:53 +0000 by davey10101