Import w/ '.' syntax

mrstevegross mrstevegross at gmail.com
Fri May 15 16:50:04 CEST 2009


Remind me: is it possible to craft an import statement like this:
  import foo.bar

If so, what's going on here exactly? Is Python looking for a module
called 'bar', in a directory called 'foo', in a search path somewhere?
Or am I totally misunderstanding the import semantics.

Thanks,
--Steve



More information about the Python-list mailing list