title: Python: deleting a class attribute in a subclass
body: <p>I have a subclass and I want it to <em>not</em> include a class attribute that's present on the base class.</p>
  
  <p>I tried this, but it doesn't work:</p>
  
  <pre><code>&gt;&gt;&gt; class A(object):
  ...     x = 5
  &gt;&gt;&gt; class B(A):
  ...     del x
  Traceback (most recent call last):
    File "&lt;pyshell#1&gt;", line 1, in &lt;module&gt;
      class B(A):
    File "&lt;pyshell#1&gt;", line 2, in B
      del x
  NameError: name 'x' is not defined
  </code></pre>
  
  <p>How can I do this?</p>