> In that specific case, you're looking for a module 'bar' in the 'foo'
> package, which should be located somewhere on sys.path.
>
> http://docs.python.org/tutorial/modules.html
>
> That covers it pretty well.
Aha! 'packages'! That makes sense.
Thanks,
--Steve
--
http://mail.python.org/mailman/
On May 15, 10:50 am, mrstevegross wrote:
> 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 misunde
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
--