Re: [Tutor] Dynamically calling a class

2005-06-09 Thread jfouhy
Quoting Ryan Parrish <[EMAIL PROTECTED]>: > example - > > list_of_classes = ['A', 'B', B', 'A'] > > class A: > doingsomething > class B: > doing something > > for x in list_of_classes: > x() > > my problem is that i get 'TypeError: 'str' object is not callable', of > which i

[Tutor] Dynamically calling a class

2005-06-09 Thread Ryan Parrish
example - list_of_classes = ['A', 'B', B', 'A'] class A: doingsomething class B: doing something for x in list_of_classes: x() 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