def _instantiate_proxy_tuple(proxy, bindings=None):
 if (proxy in bindings):
  return bindings[proxy]
 else:
  if (proxy.callable == do_not_recurse):
   obj = proxy.keywords['value']
  else:
   if (len(proxy.positionals) > 0):
    raise NotImplementedError('positional arguments not yet supported in proxy instantiation')
   kwargs = dict(((k, _instantiate(v, bindings)) for (k, v) in six.iteritems(proxy.keywords)))
   obj = checked_call(proxy.callable, kwargs)
  try:
   obj.yaml_src = proxy.yaml_src
  except AttributeError:
   pass
  bindings[proxy] = obj
  return bindings[proxy]

def _instantiate_proxy_tuple ( proxy , bindings = None ) : if ( proxy in bindings ) : return bindings [ proxy ] else : if ( proxy . callable == do_not_recurse ) : obj = proxy . keywords [ 'value' ] else : if ( len ( proxy . positionals ) > 0 ) : raise NotImplementedError ( 'positional arguments not yet supported in proxy instantiation' ) kwargs = dict ( ( ( k , _instantiate ( v , bindings ) ) for ( k , v ) in six . iteritems ( proxy . keywords ) ) ) obj = checked_call ( proxy . callable , kwargs ) try : obj . yaml_src = proxy . yaml_src except AttributeError : pass bindings [ proxy ] = obj return bindings [ proxy ]
helper function for _instantiate that handles objects of the proxy class .