def user_generator(gendesc, libs):
 def imp(context, builder, sig, args):
  func = context.declare_function(builder.module, gendesc)
  (status, retval) = context.call_conv.call_function(builder, func, gendesc.restype, gendesc.argtypes, args, env=None)
  return (status, retval)
 imp.libs = tuple(libs)
 return imp

def user_generator ( gendesc , libs ) : def imp ( context , builder , sig , args ) : func = context . declare_function ( builder . module , gendesc ) ( status , retval ) = context . call_conv . call_function ( builder , func , gendesc . restype , gendesc . argtypes , args , env = None ) return ( status , retval ) imp . libs = tuple ( libs ) return imp
a wrapper inserting code calling numba-compiled *gendesc* .