[Python-Dev] Fix import errors to have data (original) (raw)

Barry Warsaw barry at python.org
Wed Jul 28 00:00:26 CEST 2004


On Tue, 2004-07-27 at 17:55, Jim Fulton wrote:

Sure. But it would be better to have an API that you could just call to find out if a module is present. This could be implemented on top of findmodule.

If a convenience function is desired, I'd recommend adding it to the imp module. Call it something like imp.package_or_module_exists() .

-Barry

-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 307 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/python-dev/attachments/20040727/0fac6b0c/attachment-0001.pgp



More information about the Python-Dev mailing list