class documentation

class ImmutableList(tuple):

View In Hierarchy

A tuple-like object that raises useful errors when it is asked to mutate.

Example:

>>> a = ImmutableList(range(5), warning="You cannot mutate this.")
>>> a[3] = '4'
Traceback (most recent call last):
    ...
AttributeError: You cannot mutate this.
Method __new__ Undocumented
Method complain Undocumented
Instance Variable warning Undocumented
def __new__(cls, *args, warning='ImmutableList object is immutable.', **kwargs):

Undocumented

def complain(self, *args, **kwargs):

Undocumented

warning =

Undocumented