What better way to get around the "static variables" in Python?
<p>It seems that in Python, to declare a variable in a class, it is static (keeps its value in the next instances). What better way to get around this problem?</p>

<pre><code>class Foo():
  number = 0
    def set(self):
      self.number = 1


&gt;&gt;&gt; foo = Foo()
&gt;&gt;&gt; foo.number
0
&gt;&gt;&gt; foo.set()
&gt;&gt;&gt; foo.number
1
&gt;&gt;&gt; new_foo = Foo()
&gt;&gt;&gt; new_foo.number
1
</code></pre>
