On Oct 8, 2005, at 6:00 PM, Mike Orr wrote:
Python's import statement really does two different things.
from MODULE import SYMBOL
from PACKAGE import MODULE
So far so good. But if you have a package inside a package, as in
quixote/server/simple_server.py), you cannot do:
import PACKAGE
PACKAGE.PACKAGE # No, the subpackage has not been imported.
Thanks for the clear explanation, and sorry about the basic question.
Just next to the quixote.server line I was doing a
quixote.util.import_object, that works just fine of course, as util is
a module.
I can see why the underlying implementation would behave like this, but
from a usability point of view this is a nice big, eh, beauty spot.
mario
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users