How to create a list of objects?
The Python Tutorial discusses how to use lists.
Storing a list of classes is no different than storing any other objects.
def MyClass(object): passmy_types = [str, int, float, MyClass]
The Python Tutorial discusses how to use lists.
Storing a list of classes is no different than storing any other objects.
def MyClass(object): passmy_types = [str, int, float, MyClass]