title: Why is Python class not recognizing static variable
body: <p>I am trying to make a class in Python with static variables and methods (attributes and behaviors) </p>
  
  <pre><code>import numpy
  
  class SimpleString():    
      popSize = 1000 
      displaySize = 5
      alphatbet = "abcdefghijklmnopqrstuvwxyz "
  
      def __init__(self):
          pop = numpy.empty(popSize, object)
          target = getTarget()
          targetSize = len(target)
  </code></pre>
  
  <p>When the code runs though it says that it cannot make the array pop because popSize is not defined</p>