[IronPython] IronPython and polymorphism? Help with interfaces

Miha Valencic miha.valencic at gmail.com
Wed Jan 23 21:18:05 CET 2008


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080123/fdd4cd8c/attachment.html>


More information about the Ironpython-users mailing list