def substitute_bindings(fstruct, bindings, fs_class=u'default'):
 if (fs_class == u'default'):
  fs_class = _default_fs_class(fstruct)
 fstruct = copy.deepcopy(fstruct)
 _substitute_bindings(fstruct, bindings, fs_class, set())
 return fstruct

def substitute_bindings ( fstruct , bindings , fs_class = u'default' ) : if ( fs_class == u'default' ) : fs_class = _default_fs_class ( fstruct ) fstruct = copy . deepcopy ( fstruct ) _substitute_bindings ( fstruct , bindings , fs_class , set ( ) ) return fstruct
return the feature structure that is obtained by replacing each variable bound by bindings with its binding .