[IronPython] .NET can see Python classes?
oorrii at gmail.com
Sat Aug 4 21:57:49 PDT 2007
you can try the following code:
PythonEngine engine = new PythonEngine();
EngineModule module = engine.CreateModule();
engine.Execute(handleCode(code, def), module); # code contains definition
for python class 'PyClass'
UserType ptype = module.Globals["PyClass"] as UserType;
object obj = Ops.Call(ptype);
Darren Govoni-2 wrote:
> Can .NET see python defined classes or objects? I define a class in
> but one of my .NET classes tries to find it via reflection and it cannot.
> I saw a post about this that is over a year old saying it was not then
> Could this possible in IP 2.0?
> thank you,
> Users mailing list
> Users at lists.ironpython.com
View this message in context: http://www.nabble.com/-IronPython--.NET-can-see-Python-classes--tf4218815.html#a12002302
Sent from the IronPython mailing list archive at Nabble.com.
More information about the Users