From Obese Camel, 10 Years ago, written in Plain Text.
This paste is a reply to Re: Re: Untitled from Fiery Tapir - go back
Embed
Viewing differences between Re: Re: Untitled and Re: Re: Re: Untitled
class ClassFactory(object):
    @staticmethod
    def produce(class_name):
        module = importlib.import_module(class_name.lower())
        return getattr(module, class_name)