(root, default, path)
return _GenericRetrieve(root.get(path[0]), default, path[1:])
Given a list of dictionary keys |path| and a tree of dicts |root|, find
  value at path, or return |default| if any of the path doesn't exist.
Given a list of dictionary keys |path| and a tree of dicts |root|, find
  value at path, or return |default| if any of the path doesn't exist.
Given a list of dictionary keys |path| and a tree of dicts |root| find value at path or return |default| if any of the path doesn t exist .
def _GenericRetrieve(root, default, path):
  """Given a list of dictionary keys |path| and a tree of dicts |root|, find
  value at path, or return |default| if any of the path doesn't exist."""
  if not root:
    return default
  if not path:
    return root
  return _GenericRetrieve(root.get(path[0]), default, path[1:])
def _GenericRetrieve ( root , default , path ) : if not root : return default if not path : return root return _GenericRetrieve ( root . get ( path [ 0 ] ) , default , path [ 1 : ] )