How to test if a module exists?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Nov 9 08:35:48 CET 2010


In message <roy-4C92BB.16523506112010 at news.panix.com>, Roy Smith wrote:

> On the other hand, if your module's bug is that it in turn imports some
> other module, which doesn't exist, you'll also get an ImportError.

Does it really matter? Either way, the module is unusable.



More information about the Python-list mailing list