using IronPython.Hosting; using IronPython.Runtime.Types; var engine = Python.CreateEngine(); var scope = engine.CreateScope(); var pyType = (PythonType)engine.Import("mymodule").GetMember("MyClass")[0]; var instance = pyType.CreateInstance();
using IronPython.Hosting; using IronPython.Runtime; var engine = Python.CreateEngine(); var scope = engine.CreateScope(); var pyListType = Python.GetBuiltinType(BuiltinTypeId.List); var instance = pyListType.CreateInstance(new List