create a class list dont allow duplicated entries
<p>i'm trying to create a class does not allow duplicate entryies</p>

<pre><code>class QSet(list):
    def __init__(self,*args):
        super(QSet, self).__init__(args[0])
        self=list(set(self))  
</code></pre>

<p>and when try to test the class duplicated entries not removed </p>

<pre><code>d=["a","b","a","z","a"]
z=QList(d)       

print d  
print z
</code></pre>

<p>any suggestion to solve this 
Thanks</p>
