App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
google.appengine._internal.django.utils.datastructures.ImmutableList Class Reference
Inheritance diagram for google.appengine._internal.django.utils.datastructures.ImmutableList:

Public Member Functions

def __new__
 
def complain
 

Public Attributes

 warning
 

Static Public Attributes

 append = complain
 
 extend = complain
 
 insert = complain
 
 pop = complain
 
 remove = complain
 
 sort = complain
 
 reverse = complain
 

Detailed Description

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.

The documentation for this class was generated from the following file: