Re: [IronPython] Creating Python classes in IP2

2008-03-31 Thread Curt Hagenlocher
On Mon, Mar 31, 2008 at 8:54 AM, Slide [EMAIL PROTECTED] wrote: I use the following for finding a class that implements a certain interface. [...] Is there a way that is more portable between the different languages? It looks like the DLR doesn't try to abstract classness. And given that

[IronPython] Creating Python classes in IP2

2008-03-30 Thread Paul Turbett
Hi, I'm attempting to update an application framework that uses IP1.1 to use IP2b1. In the framework, I create python objects that are derived from C# classes, so I can bind to an interface at compile time. I do this from C# by executing the .py file that defines the class, getting the class

Re: [IronPython] Creating Python classes in IP2

2008-03-30 Thread Curt Hagenlocher
On Sun, Mar 30, 2008 at 2:59 AM, Paul Turbett [EMAIL PROTECTED] wrote: I've looked through the DLR hosting spec, and experimented a bit, but I can't see how to get the same thing working with DLR hosting. So, how do I create instances of python classes from C#? This is what works for me:

Re: [IronPython] Creating Python classes in IP2

2008-03-30 Thread Paul Turbett
Awesome, thanks! Curt Hagenlocher wrote: On Sun, Mar 30, 2008 at 2:59 AM, Paul Turbett [EMAIL PROTECTED] wrote: I've looked through the DLR hosting spec, and experimented a bit, but I can't see how to get the same thing working with DLR hosting. So, how do I create instances of python