Hello All,
I am running into a frustrating exception. When attempting to instantiate a 
class with an argument that is an instance of a different class from a separate 
assembly, I receive an unhelpful type error from the IronPython interpreter:
TypeError: expected XYZPositioner, got XYZPositioner
Both assemblies were loaded using clr.AddReferenceToFileAndPath. I have tried 
to confirm the type of the object I am passing as an argument to the 
constructor:
> A.GetType() == Target.Devices.XYZPositioner
True
Is there any way to get more information about the error? (The message reminds 
me of my days working in OCaml, where all of the error messages were translated 
from French grammar and it was never clear how to differentiate the object from 
the subject)
Thanks,
Matt Bakalar
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to