Python で (事前に決められていない) 数のクラス インスタンスを生成するのに問題がありました。基本的に、クラスは自分自身を再現できるようにします。
class foo:
def __init__(self, name):
self.name = name
while True:
newinstance(foo) #what would the code be for this?
#or maybe
foo.newinstance #just something that could update itself
基本的に、新しいインスタンスを何度でも生成します。ありがとうございます。