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

js ebgssth at gmail.com
Mon May 21 09:57:31 EDT 2007


Why not just use try?
Trying to import a module is a python idiom.
http://www.diveintopython.org/file_handling/index.html

On 21 May 2007 06:17:16 -0700, dmitrey <openopt at ukr.net> wrote:
> howto check does module 'asdf' exist (is available for import) or no?
> (without try/cache of course)
> Thx in advance, D.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list