Slide, doesn&#39;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>
&nbsp; print IPerson(Env).Name<br>produces NoneType object is not callable exception and the script<br>&nbsp; print Env.Name<br>produces Unhandled Exception: System.MissingMemberException: &#39;Person&#39; object has no attribute &#39;Name&#39;
<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[&quot;Env&quot;] = pers as IPerson;
<br>still no go. <br><br>Funny thing is, that dir(IPerson) lists the &quot;Name&quot; attribute (property):<br>[&#39;Name&#39;, &#39;__class__&#39;, &#39;__doc__&#39;, &#39;__init__&#39;, &#39;__module__&#39;, &#39;__repr__&#39;]
<br><br>Miha<br><br><div class="gmail_quote">On Jan 23, 2008 3:55 PM, Slide &lt;<a href="mailto:slide.o.mix@gmail.com">slide.o.mix@gmail.com</a>&gt; 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 &lt;<a href="mailto:miha.valencic@gmail.com">miha.valencic@gmail.com</a>&gt; wrote:<br>&gt; Slide, thanks for a quick response. My answers are inline:
<br></div></div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Person p = new Person();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; locals[&quot;Env&quot;] = p as IPerson;<br></blockquote></div><br>