Dictionary, that has case-insensitive keys.

Normally keys are retained in their original form when queried with .keys() or .items(). If initialized with preserveCase=0, keys are both looked up in lowercase and returned in lowercase by .keys() and .items().

Method __init__ Create an empty dictionary, or update from 'dict'.
Method __delitem__ Undocumented
Method __getitem__ Retrieve the value associated with 'key' (in any case).
Method __setitem__ Associate 'value' with 'key'. If 'key' already exists, but in different case, it will be replaced.
Method has_key Case insensitive test whether 'key' exists.
Method keys List of keys in their original case.
Method values List of values.
Method items List of (key,value) pairs.
Method get Retrieve value associated with 'key' or return default value if 'key' doesn't exist.
Method setdefault If 'key' doesn't exists, associate it with the 'default' value. Return value associated with 'key'.
Method update Copy (key,value) pairs from 'dict'.
Method __repr__ String representation of the dictionary.
Method iterkeys Undocumented
Method itervalues Undocumented
Method iteritems Undocumented
Method popitem Undocumented
Method clear Undocumented
Method copy Undocumented
Method __len__ Undocumented
Method __eq__ Undocumented
Method _lowerOrReturn Undocumented
Method _doPreserve Undocumented
def __init__(self, dict=None, preserve=1): (source)

Create an empty dictionary, or update from 'dict'.

def __delitem__(self, key): (source)
Undocumented
def _lowerOrReturn(self, key): (source)
Undocumented
def __getitem__(self, key): (source)

Retrieve the value associated with 'key' (in any case).

def __setitem__(self, key, value): (source)

Associate 'value' with 'key'. If 'key' already exists, but in different case, it will be replaced.

def has_key(self, key): (source)

Case insensitive test whether 'key' exists.

def _doPreserve(self, key): (source)
Undocumented
def keys(self): (source)

List of keys in their original case.

def values(self): (source)

List of values.

def items(self): (source)

List of (key,value) pairs.

def get(self, key, default=None): (source)

Retrieve value associated with 'key' or return default value if 'key' doesn't exist.

def setdefault(self, key, default): (source)

If 'key' doesn't exists, associate it with the 'default' value. Return value associated with 'key'.

def update(self, dict): (source)

Copy (key,value) pairs from 'dict'.

def __repr__(self): (source)

String representation of the dictionary.

def iterkeys(self): (source)
Undocumented
def itervalues(self): (source)
Undocumented
def iteritems(self): (source)
Undocumented
def popitem(self): (source)
Undocumented
def clear(self): (source)
Undocumented
def copy(self): (source)
Undocumented
def __len__(self): (source)
Undocumented
def __eq__(self, other): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2016-05-18 16:01:36.