public static void call_tracing(CodeContext /*!*/ context, object func, PythonTuple args) { PythonContext pyContext = (PythonContext)context.LanguageContext; pyContext.EnsureDebugContext(); pyContext.UnregisterTracebackHandler(); pyContext.PushTracebackHandler(new PythonTracebackListener((PythonContext)context.LanguageContext)); pyContext.RegisterTracebackHandler(); try { PythonCalls.Call(func, args.ToArray()); } finally { pyContext.PopTracebackHandler(); pyContext.UnregisterTracebackHandler(); } }