Indirect Class Instance Invocation

John Bell jbell at iinet.net.au
Mon Nov 12 19:22:39 EST 2001


I feel that this should be do-able, but can't see how.  If I have some
class foo and string s='foo', can I invoke bar as an instance of foo
given only the string s?  (ie. bar=(something on s)() )A kind of setattr
for classes rather than attributes.

John




More information about the Python-list mailing list