Module Expr Str ImportFrom alias Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str If UnaryOpNot Call NameLoad NameLoad body Assign NameStore Str Raise Call NameLoad BinOpMod NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list decorator_list
N/A N/A Transformdict: a mapping that transforms keys on lookup

This module and ``test_transformdict.py`` were extracted from a
patch contributed to Python by Antoine Pitrou implementing his
PEP 455 -- Adding a key-transforming dictionary to collections.

As of Nov. 14, 2014, the patch was not yet merged to Python 3.5
(which is in pre-alpha). The patch is ``transformdict3.patch``,
part of issue #18986: Add a case-insensitive case-preserving dict.

http://bugs.python.org/issue18986
 collections.abc MutableMapping N/A _sentinel N/A object TransformDict N/A MutableMapping N/A N/A Dictionary that calls a transformation function when looking
    up keys, but preserves the original keys.

    >>> d = TransformDict(str.lower)
    >>> d['Foo'] = 5
    >>> d['foo'] == d['FOO'] == d['Foo'] == 5
    True
    >>> set(d.keys())
    {'Foo'}
     N/A __slots__ N/A _transform _original _data __init__ N/A N/A self transform init_dict N/A None kwargs N/A N/A Create a new TransformDict with the given *transform* function.
        *init_dict* and *kwargs* are optional initializers, as in the
        dict constructor.
         N/A N/A N/A callable transform N/A N/A msg expected a callable, got %r N/A N/A TypeError N/A msg N/A transform __class__ N/A N/A self _transform transform N/A N/A self _original N/A N/A N/A self _data N/A N/A init_dict N/A N/A N/A N/A self update init_dict N/A kwargs N/A N/A N/A N/A self update kwargs N/A getitem N/A N/A self key N/A N/A N/A D.getitem(key) -> (stored key, value) N/A transformed N/A N/A self _transform key N/A original N/A N/A self _original N/A transformed N/A value N/A N/A self _data N/A transformed N/A N/A original value N/A transform_func N/A N/A self N/A N/A N/A This TransformDict's transformation function N/A N/A self _transform N/A property __len__ N/A N/A self N/A N/A N/A N/A len N/A self _data N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A N/A N/A self _original values N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A self _data N/A N/A N/A self _transform key N/A __setitem__ N/A N/A self key value N/A N/A N/A transformed N/A N/A self _transform key N/A N/A N/A self _data N/A transformed value N/A N/A N/A N/A self _original setdefault transformed key N/A __delitem__ N/A N/A self key N/A N/A N/A transformed N/A N/A self _transform key N/A N/A N/A self _data N/A transformed N/A N/A N/A self _original N/A transformed N/A clear N/A N/A self N/A N/A N/A D.clear() -> None.  Remove all items from D. N/A N/A N/A N/A self _data clear N/A N/A N/A N/A self _original clear N/A __contains__ N/A N/A self key N/A N/A N/A N/A N/A N/A self _transform key N/A self _data N/A get N/A N/A self key default N/A None N/A N/A D.get(k[,d]) -> D[k] if k in D, else d.  d defaults to None. N/A N/A N/A N/A self _data get N/A N/A self _transform key default N/A pop N/A N/A self key default N/A _sentinel N/A N/A D.pop(k[,d]) -> v, remove key and return corresponding value.
           If key is not found, d is returned if given, otherwise
           KeyError is raised.
         N/A transformed N/A N/A self _transform key N/A N/A default _sentinel N/A N/A N/A N/A self _original N/A transformed N/A N/A N/A N/A self _data pop transformed N/A N/A N/A N/A N/A self _original pop transformed None N/A N/A N/A N/A self _data pop transformed default N/A popitem N/A N/A self N/A N/A N/A D.popitem() -> (k, v), remove and return some (key, value) pair
           as a 2-tuple; but raise KeyError if D is empty.
         N/A N/A transformed value N/A N/A N/A self _data popitem N/A N/A N/A N/A N/A self _original pop transformed value N/A copy N/A N/A self N/A N/A N/A D.copy() -> a shallow copy of D N/A other N/A N/A self __class__ N/A self _transform N/A N/A other _original N/A N/A N/A self _original copy N/A N/A other _data N/A N/A N/A self _data copy N/A other N/A N/A __copy__ copy __getstate__ N/A N/A self N/A N/A N/A N/A N/A self _transform N/A self _data N/A self _original N/A __setstate__ N/A N/A self state N/A N/A N/A N/A N/A self _transform N/A self _data N/A self _original state N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A equiv N/A dict self N/A N/A N/A TypeError N/A N/A equiv N/A list N/A N/A self items N/A N/A %s(%r, %s) N/A N/A N/A self __class__ __name__ N/A self _transform N/A repr equiv N/A N/A