title: Confusion in accessing class attribute without self - python
body: <p>I know that we can access class attributes with <code>self</code> or the <code>class</code> name.</p>
  
  <p>But I am bit confused why the following also works</p>
  
  <pre><code>class Crazy(object):
    VERSION = 1
    def __init__(self, version=VERSION):
      print version
  </code></pre>
  
  <p>But this doesn't</p>
  
  <pre><code>class Crazy(object):
    VERSION = 1
    def __init__(self):
      print VERSION
  </code></pre>