Re: [IronPython] Help with Ops.GetAttr

2008-02-12 Thread Paul Turbett
February 12, 2008 5:30 AM > To: users@lists.ironpython.com > Subject: [IronPython] Help with Ops.GetAttr > > Hi, > > I'm attempting to get an attribute from python object from C# using a > method like this: > > public object GetAttr(object

Re: [IronPython] Help with Ops.GetAttr

2008-02-12 Thread Dino Viehland
bject: [IronPython] Help with Ops.GetAttr Hi, I'm attempting to get an attribute from python object from C# using a method like this: public object GetAttr(object pyObject, string name) { ICallerContext context = _pythonEngine.DefaultModule as ICallerContext; object value = Ops.GetAttr( context

[IronPython] Help with Ops.GetAttr

2008-02-12 Thread Paul Turbett
Hi, I'm attempting to get an attribute from python object from C# using a method like this: public object GetAttr(object pyObject, string name) { ICallerContext context = _pythonEngine.DefaultModule as ICallerContext; object value = Ops.GetAttr( context, pyObject, SymbolTable.StringToId(n