I don't know how to make __slots__ work
<p>How come this code runs for me?</p>

<pre><code>class Foo():
    __slots__ = []
    def __init__(self):
        self.should_not_work = "or does it?"
        print "This code does not run,",self.should_not_work

Foo()
</code></pre>

<p>I thought <strong>slots</strong> worked as a restriction. I'm running Python 2.6.6.</p>
