It's a feature, explicit interfaces require an explicit call :). From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miha Valencic Sent: Wednesday, January 23, 2008 12:18 PM To: Discussion of IronPython Subject: Re: [IronPython] IronPython and polymorphism? Help with interfaces
Thanks for help, everybody! Both methods work: print IPerson.Name.GetValue(Env); print IPerson.Name.__get__(Env, None); The downside of this approach is that one has to import the interface in question into Python explicitly. Is this a bug or a feature? (meaning that Env.Name does not work and IPerson.Name.__get__(Env, None) works) Thanks, Miha.
_______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
