[Tutor] Dynamically calling a class

Ryan Parrish ryanpublic at foxracing.com
Fri Jun 10 01:49:14 CEST 2005

example -

list_of_classes = ['A', 'B', B', 'A']

class A:
class B:
	doing something

for x in list_of_classes:

my problem is that i get 'TypeError: 'str' object is not callable', of 
which i understand what the error is saying, i just want to know how to 
dynamically call the class.
i have been trying to search google, but im not exactly sure what i 
should be searching for :-/

I'm not really asking for someone to hold my hand through it, just some 
pointers on where i need to start looking.

More information about the Tutor mailing list