Add with_traceback
@@ -182,6 +182,11 @@ namespace IronPython.Runtime.Exceptions {
set { _args = PythonTuple.Make(value); }
}
+ public object with_traceback(TraceBack tb) {
+ __traceback__ = tb;
+ return this;
+ }
+
/// <summary>
/// Returns a tuple of (type, (arg0, ..., argN)) for implementing pickling/copying
/// </summary>
@@ -381,6 +386,9 @@ namespace IronPython.Runtime.Exceptions {
}
return _traceback;
}
+ set {
+ _traceback = value;
+ }
}
public bool HasCause {
