/// <summary> /// Sets an attribute on the object without running any custom object defined behavior. /// </summary> public static void __setattr__(CodeContext /*!*/ context, object self, string name, object value) { if (self is PythonType) { throw PythonOps.TypeError("can't apply this __setattr__ to type object"); } PythonOps.ObjectSetAttribute(context, self, name, value); }