title: Inheriting from a namedtuple base class
body: <p>This question is asking the opposite of <a href="https://stackoverflow.com/questions/39098452/inherit-namedtuple-from-a-base-class-in-python">Inherit namedtuple from a base class in python</a> , where the aim is to inherit a subclass from a namedtuple and not vice versa.</p>
  <p>In normal inheritance, this works:</p>
  <pre><code>class Y(object):
      def __init__(self, a, b, c):
          self.a = a
          self.b = b
          self.c = c
  
  
  class Z(Y):
      def __init__(self, a, b, c, d):
          super(Z, self).__init__(a, b, c)
          self.d = d
  </code></pre>
  <p>[out]:</p>
  <pre><code>&gt;&gt;&gt; Z(1,2,3,4)
  &lt;__main__.Z object at 0x10fcad950&gt;
  </code></pre>
  <p>But if the baseclass is a <code>namedtuple</code>:</p>
  <pre><code>from collections import namedtuple
  
  X = namedtuple('X', 'a b c')
  
  class Z(X):
      def __init__(self, a, b, c, d):
          super(Z, self).__init__(a, b, c)
          self.d = d
  </code></pre>
  <p>[out]:</p>
  <pre><code>&gt;&gt;&gt; Z(1,2,3,4)
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  TypeError: __new__() takes exactly 4 arguments (5 given)
  </code></pre>
  <p>The question, <strong>is it possible to inherit namedtuples as a base class in Python? If so, how?</strong></p>