App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.api.urlfetch._CaselessDict Class Reference
Inheritance diagram for google.appengine.api.urlfetch._CaselessDict:

Public Member Functions

def __init__
 
def __setitem__
 
def __getitem__
 
def __delitem__
 
def has_key
 
def __contains__
 
def get
 
def update
 
def copy
 

Public Attributes

 caseless_keys
 

Detailed Description

Case insensitive dictionary.

This class was lifted from os.py and slightly modified.

Member Function Documentation

def google.appengine.api.urlfetch._CaselessDict.__contains__ (   self,
  key 
)
Same as 'has_key', but used for 'in' operator.'
def google.appengine.api.urlfetch._CaselessDict.__delitem__ (   self,
  key 
)
Remove item from dictionary.

Args:
  key: Key of item to remove.  Key is case insensitive, so "del d['Key']" is
the same as "del d['key']"
def google.appengine.api.urlfetch._CaselessDict.__getitem__ (   self,
  key 
)
Get dictionary item.

Args:
  key: Key of item to get.  Key is case insensitive, so "d['Key']" is the
same as "d['key']".

Returns:
  Item associated with key.
def google.appengine.api.urlfetch._CaselessDict.__setitem__ (   self,
  key,
  item 
)
Set dictionary item.

Args:
  key: Key of new item.  Key is case insensitive, so "d['Key'] = value "
will replace previous values set by "d['key'] = old_value".
  item: Item to store.
def google.appengine.api.urlfetch._CaselessDict.copy (   self)
Make a shallow, case sensitive copy of self.
def google.appengine.api.urlfetch._CaselessDict.get (   self,
  key,
  failobj = None 
)
Get dictionary item, defaulting to another value if it does not exist.

Args:
  key: Key of item to get.  Key is case insensitive, so "d['Key']" is the
same as "d['key']".
  failobj: Value to return if key not in dictionary.
def google.appengine.api.urlfetch._CaselessDict.has_key (   self,
  key 
)
Determine if dictionary has item with specific key.

Args:
  key: Key to check for presence.  Key is case insensitive, so
"d.has_key('Key')" evaluates to the same value as "d.has_key('key')".

Returns:
  True if dictionary contains key, else False.
def google.appengine.api.urlfetch._CaselessDict.update (   self,
  dict = None,
  kwargs 
)
Update dictionary using values from another dictionary and keywords.

Args:
  dict: Dictionary to update from.
  kwargs: Keyword arguments to update from.

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