title: python 2.7 - how to call parent class constructor
body: <p>I have base class like below</p>
  
  <pre><code>class FileUtil:
      def __init__(self):
          self.outFileDir = os.path.join(settings.MEDIA_ROOT,'processed')
          if not os.path.exists(outFileDir):
              os.makedirs(outFileDir)
      ## other methods of the class
  </code></pre>
  
  <p>and I am extending this class as below:</p>
  
  <pre><code>class Myfile(FileUtil):
      def __init__(self, extension):
          super(Myfile, self).__init__()
          self.extension = 'text'
      ## other methods of class
  </code></pre>
  
  <p>But i am getting below error?</p>
  
  <pre><code>super(Myfile, self).__init__()
  TypeError: super() takes at least 1 argument (0 given)
  </code></pre>
  
  <p>I gone through many documents and found that there are different sytex of calling super() in 2.x and 3.x. I tried both ways but getting error.</p>