I’m having some trouble understanding the Importer Protocol as per http://www.python.org/dev/peps/pep-0302/. Should the fullname argument of finder.find_module(fullname, path=None) never include a . (dot)?
That is, if you want to find module abc.efg.hij, you must call finder.find_module('hij', path='abc.efg'). Calling finder.find_module('abc.efg.hij') would be absolutely incorrect.
Is this correct?
No, it is just saying that
import abc.efg.hijwill eventually result in 3 differentfind_modulecalls at various stages of the import process:Exploring the importlib documentation may also be of interest to you:
http://docs.python.org/py3k/library/importlib#importlib.abc.Finder.find_module