Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Public Member Functions | Public Attributes | List of all members
pip._vendor.html5lib.utils.MethodDispatcher Class Reference
Inheritance diagram for pip._vendor.html5lib.utils.MethodDispatcher:

Public Member Functions

def __init__
 
def __getitem__
 

Public Attributes

 default
 

Detailed Description

Dict with 2 special properties:

On initiation, keys that are lists, sets or tuples are converted to
multiple keys so accessing any one of the items in the original
list-like object returns the matching value

md = MethodDispatcher({("foo", "bar"):"baz"})
md["foo"] == "baz"

A default value which can be set through the default attribute.

Constructor & Destructor Documentation

def pip._vendor.html5lib.utils.MethodDispatcher.__init__ (   self,
  items = () 
)

Member Function Documentation

def pip._vendor.html5lib.utils.MethodDispatcher.__getitem__ (   self,
  key 
)

Member Data Documentation

pip._vendor.html5lib.utils.MethodDispatcher.default

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

Copyright 2014 Google Inc. All rights reserved.