title: 'type' object is not iterable when iterating list in class
body: <p>When using this code:</p>
  
  <pre><code>import random
  
  class result:
      list = ['a', 'b', 'c']
  
      def choicename(self):
          for i in list:
              if i == list[0]:
                  result = random.randint(90, 100)
              else:
                  result = random.randint(0, 10)
  
          print 'The %s result is %d' % (i, result)
  
  if __name__ == '__main__':
      t = result()
      t.choicename()
  </code></pre>
  
  <p>I get an error:</p>
  
  <pre class="lang-none prettyprint-override"><code>  File "D:\Program\test\test\__init__.py", line 22, in &lt;module&gt;
      t.choicename()
    File "D:\Program\test\test\__init__.py", line 13, in choicename
      for i in list:
  TypeError: 'type' object is not iterable
  </code></pre>
  
  <p>Why is that? <code>list</code> looks iterable to me.</p>