Mart Somermaa wrote:
There at least two workarounds: * the getattr approach documented in [3]
I can't comment on the rest, but the getattr seems overly complicated. If you need just the module, what's wrong with:
__import__(modname) modobj = sys.modules[modname] _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com