The key is to define namespace, why is also different behavior<span></span> from ironpython:<div><br></div><div><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">Python 2.7.9 |Continuum Analytics, Inc.| (default, Dec 12 2014, 14:56:54) [MSC v<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">.1500 32 bit (Intel)] on win32<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">Type "help", "copyright", "credits" or "license" for more information.<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">Anaconda is brought to you by Continuum Analytics.<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">Please check out:<a href="http://continuum.io/thanks" target="_blank">http://continuum.io/thanks</a> and<a href="https://binstar.org/" target="_blank">https://binstar.org</a><u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">>>> import clr<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">Attempting to load Python.Runtime using standard binding rules...<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">Attempting to load Python.Runtime from: 'C:\Python\Python27\lib\site-packages\Py<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">thon.Runtime.dll'...<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">>>> import System<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">>>> class ViewModel(System.ComponentModel.INotifyPropertyChanged):<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">...   __namespace__="blabla"<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">...   def __init__(self):<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">...     pass<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">...<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)">>>> ViewModel()<u></u><u></u></span></font></p><p class="MsoNormal"><font size="2"><span style="background-color:rgba(255,255,255,0)"><__main__.ViewModel object at 0x028784B0><u></u><u></u></span></font></p><div><br></div><br>On Sunday, March 13, 2016, Hansong Huang <hhspiny@pine.cc> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I am attempting to implement a MVVM WPF application in Python.Net. <br></div><div><br></div><div>The ViewModel class needs to implement the <span style="font-weight:bold">INotifyPropertyChanged interface. </span></div><div><span style="font-weight:bold"><br></span></div><div><div>class ViewModel(System.ComponentModel.INotifyPropertyChanged):</div><div>    def __init__(self):</div><div>        pass</div></div><div><br></div><div>vm = ViewModel()</div><div><br></div><div>gives exception:</div><div>"TypeError: interface takes exactly one argument"<br></div><div><br></div><div>I am not sure what is the reason. </div><div><br></div><div>I remember a post last year saying the the interface inheritance is implemented in a development brand and not integrated into main branch. not sure if it is the reason.</div><div><br></div><div>I am using python 2.1.0.dev1. </div><div><br></div><div>thanks</div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div>