Slide, doesn't work:<br>I get. Unhandled Exception: IronPython.Runtime.Exceptions.ArgumentTypeException: NoneType object is not callable<br><br>I passed as IPerson and I even casted to IPerson in IPY.<br>The script:<br>
print IPerson(Env).Name<br>produces NoneType object is not callable exception and the script<br> print Env.Name<br>produces Unhandled Exception: System.MissingMemberException: 'Person' object has no attribute 'Name'
<br><br>Is there anything else I could try? It seems weird that explicitly defined interfaces are not callable. There are probably some even in .NET fx.. I even tried:<br>IPerson pers = new Person() as IPerson;<br>locals["Env"] = pers as IPerson;
<br>still no go. <br><br>Funny thing is, that dir(IPerson) lists the "Name" attribute (property):<br>['Name', '__class__', '__doc__', '__init__', '__module__', '__repr__']
<br><br>Miha<br><br><div class="gmail_quote">On Jan 23, 2008 3:55 PM, Slide <<a href="mailto:slide.o.mix@gmail.com">slide.o.mix@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Jan 23, 2008 6:46 AM, Miha Valencic <<a href="mailto:miha.valencic@gmail.com">miha.valencic@gmail.com</a>> wrote:<br>> Slide, thanks for a quick response. My answers are inline:
<br></div></div> Person p = new Person();<br> locals["Env"] = p as IPerson;<br></blockquote></div><br>