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

Guido van Rossum guido at python.org
Tue Jul 27 22:48:22 CEST 2004


Nope. It doesn't handle packages.

>>> import compiler.ast >>> import imp >>> imp.findmodule('compiler.ast') Traceback (most recent call last): File "", line 1, in ? ImportError: No module named compiler.ast

The docs explain how to handle that though.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list