title: NameError: name 'self' is not defined
body: <p>Why such structure</p>
  
  <pre><code>class A:
      def __init__(self, a):
          self.a = a
  
      def p(self, b=self.a):
          print b
  </code></pre>
  
  <p>gives an error <code>NameError: name 'self' is not defined</code>?</p>