title: Declaring several python classes in a loop?
body: <p>I have a generic class definition, something like this -  </p>
  
  <pre><code>class Foo(object):
      property = 1
      def __init__(self, ...):
      ...
  </code></pre>
  
  <p>I wish to create a large number of classes, each of which has a different value of <code>property</code>, and store these classes in a list. The classes in this list will be subsequently used to create several objects.</p>
  
  <p>What is the best way to do this?</p>