A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2008-November/083728.html below:

[Python-Dev] __import__ problems

[Python-Dev] __import__ problems [Python-Dev] __import__ problemsHrvoje Niksic hrvoje.niksic at avl.com
Thu Nov 27 17:14:57 CET 2008
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]
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4