Case insensitive dictionary.
This class was lifted from os.py and slightly modified.
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:
- code/googleappengine-read-only/python/google/appengine/api/urlfetch.py