[Python.NET] AttributeError: 'MarshalByRefObject' object has no attribute ...

2004-12-28 Thread Martin Richard
This is python 2.3. I start a toy .NET service. This is a C-sharp executable. In the C-sharp files, this code exists: namespace foo { public class Toy : MarshalByRefObject, IToy ... } In python, after loading an assembly, I can successfully do either: from CLR.foo import Toy from C

RE: [Python.NET] AttributeError: 'MarshalByRefObject' object has noattribute ...

2004-12-28 Thread Brian Lloyd
Hi Martin - Interface types, as they appear to Python, all have a single argument constructor that you can use to "cast" an object to a particular interface. Because System.Activator.GetObject() has a return type of object, the runtime returns the object as its true runtime type to Python (wh

RE: [Python.NET] AttributeError: 'MarshalByRefObject' object has noattribute ...

2004-12-28 Thread Martin Richard
Thanks for the fast reply. The pseudo-cast did it. I'd wonder why trying Itoy() gave complaints about needing an argument. Rick -Original Message- From: Brian Lloyd [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 1:13 PM To: Martin Richard; [email protected] Subject: R