def make_intrinsic_template(handle, defn, name):
 base = _IntrinsicTemplate
 name = ('_IntrinsicTemplate_%s' % name)
 dct = dict(key=handle, _definition_func=staticmethod(defn), _impl_cache={}, _overload_cache={})
 return type(base)(name, (base,), dct)

def make_intrinsic_template ( handle , defn , name ) : base = _IntrinsicTemplate name = ( '_IntrinsicTemplate_%s' % name ) dct = dict ( key = handle , _definition_func = staticmethod ( defn ) , _impl_cache = { } , _overload_cache = { } ) return type ( base ) ( name , ( base , ) , dct )
make a template class for a intrinsic handle *handle* defined by the function *defn* .