I need to be able to load and access Python classes based on a module and class names defined by strings. So let's say someone passes 'MyFavouriteClass' and 'somemodule'. I would like to be able to access MyFavouriteClass() within the module somemodule. Is this at all possible? And if not, what are my options to achieve something similar? Basically my application must be passed a name of a module and class so that we can access it.

Thanks in advance.

Carlo

_______________________________________________
coders mailing list
coders@slug.org.au
http://lists.slug.org.au/listinfo/coders

Reply via email to