| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
dict --+
|
NoCaseMultiDict
This is a dictionary that allows case insensitive access to values.
>>> d = NoCaseMultiDict([('A', 'b'), ('a', 'c'), ('B', 'f'), ('c', 'x'), ('c', 'y'), ('c', 'z')]) >>> d NoCaseMultiDict([('A', ['b', 'c']), ('c', ['x', 'y', 'z']), ('B', ['f'])]) >>> d['a'] 'b' >>> d.get_all('a') ['b', 'c'] >>> 'a' in d and 'b' in d True
|
|||
new empty dictionary |
|
||
|
|||
|
|||
|
|||
| True if D has a key k, else False |
|
||
|
|||
|
|||
| D[k] if k in D, else d |
|
||
|
|||
|
|||
| an iterator over the (key, value) items of D |
|
||
| a shallow copy of D |
|
||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
|
|
|
|
Return the default value if the requested data doesn't exist.
If Example: >>> d = NoCaseMultiDict(dict(foo='42', bar='blub')) >>> d.get('foo', type_func=int) 42 >>> d.get('bar', -1, type_func=int) -1
|
|
Set a If |
|
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Aug 2 10:24:53 2010 | http://epydoc.sourceforge.net |