How python deals with module and package having the same name?

Viewed 25073

Suppose I have a module foo.py and a package foo/. If I call

import foo

which one will be loaded? How can I specify I want to load the module, or the package?

3 Answers
Related