Pekka Pessi <Pekka.Pessi at nokia.com> writes: > If you want to call the __call__ attribute, that is a > no-brainer, too: > > >>> class module(types.ModuleType): > ... def __call__(self, *x, **kw): The problem then is how to make the import statement create this new class of module instead of the regular kind.