コード例 #1
0
 public void Start()
 {
     try {
         if (kwargs != null)
         {
             Ops.CallWithArgsTupleAndKeywordDict(func, new object[0], new string[0], args, kwargs);
         }
         else
         {
             Ops.CallWithArgsTuple(func, new object[0], args);
         }
     } catch (Exception e) {
         Ops.Print(context.SystemState, "Unhandled exception on thread");
         Ops.Print(context.SystemState, e);
     }
 }
コード例 #2
0
ファイル: Builtin.cs プロジェクト: weimingtom/IronPythonMod
 public static object Apply(ICallerContext context, object func, object args, object kws)
 {
     return(Ops.CallWithArgsTupleAndKeywordDict(func, new object[0], new string[0], args, kws));
 }