Thanks all for all the great pointers!
Looks like we'll probably start with Python and the standard debugger,
but work towards a generic Microsoft.Scripting.Debugging solution.
That sounds like a big project that many people would be interested
in.
-Doug
On Thu, Sep 22, 2011 at 12:00 PM, Dino Vi
__class__ exists on object in python and is then inherited by the other types.
When accessing a member from
C# you get its view of the world which doesn't include Python object members.
To get the Python type I suggest calling DynamicHelpers.GetPythonType.
Sent from my Windows Phone
-Orig
Having the following Python code:
class Plugin:
def method(self):
pass
plugin = Plugin()
and an embedded ScriptScope instance in my .NET application,
the following C# works fine
dynamic plugin = pythonEngine.GetVariable("plugin");
var attrs = plugin.__class__.__dict__