def bind_expression_to_resources(expr, resources):
 if (resources is None):
  resources = {}
 return expr._subs({k: bz.data(v, dshape=k.dshape) for (k, v) in iteritems(resources)})

def bind_expression_to_resources ( expr , resources ) : if ( resources is None ) : resources = { } return expr . _subs ( { k : bz . data ( v , dshape = k . dshape ) for ( k , v ) in iteritems ( resources ) } )
bind a blaze expression to resources .