M
> To: Discussion of IronPython
> Subject: Re: [IronPython] Determine the classes/interfaces a Python
> implements
>
>
> Hi Jeff,
>
> Probably the easiest way of doing this is to define a Python function
> that uses issubtype. You can use this as a delegate from
s.ironpython.com] On Behalf Of Michael Foord
Sent: Monday, December 15, 2008 1:20 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Determine the classes/interfaces a Python implements
Hi Jeff,
Probably the easiest way of doing this is to define a Python function
that uses issubtype. You can u
You should call PythonOps.IsSubClass and pass in the PythonType and the
interface you want to compare it with. The interface can be either a .NET type
object or another Python type object (or a tuple, etc...)
The not raising on missing functions is a feature :) You could build a
meta-class wh
2008/12/16 Michael Foord :
> Probably the easiest way of doing this is to define a Python function that
> uses issubtype. You can use this as a delegate from the C# side (warning
> untested):
You mean issubclass...
--
Seo Sanghyeon
___
Users mailing li
Hi Jeff,
Probably the easiest way of doing this is to define a Python function
that uses issubtype. You can use this as a delegate from the C# side
(warning untested):
ScriptScope scope = engine.CreateScope();
ScriptSource imports = engine.CreateScriptSourceFromString("from System
import IS