Callable modules?

Martin v. Loewis martin at v.loewis.de
Mon Jul 22 01:28:06 EDT 2002


Paul Rubin <phr-n2002b at NOSPAMnightsong.com> writes:

> Is there a way to do that?

You can put a callable object in sys.modules. Module objects
themselves are not callable.

> If there's not a way to do this already, maybe it's a reasonable
> addition.

Maybe not. Why do you need this?

Regards,
Martin



More information about the Python-list mailing list