howto check does module 'asdf' exist? (is available for import)

Stefan Behnel stefan.behnel-n05pAM at web.de
Mon May 21 09:36:23 EDT 2007


dmitrey wrote:
> howto check does module 'asdf' exist (is available for import) or no?

Walk through sys.path and find it yourself?


> (without try/cache of course)

Why is the obvious (and most common) try/import/catch solution "of course" out?

Stefan



More information about the Python-list mailing list