Lines Matching defs:in
4 different mechanisms involved in loading modules independently.
6 While the built-in module imp exports interfaces to the built-in
8 the built-in function __import__ in order to change the semantics of
22 module in a search path and to load it. It defines a method which
23 searches for a module in a single directory; by overriding this method
25 built-in and frozen modules are searched instead.
28 strategy used by the built-in __import__ function: ModuleLoader uses
39 module loader instance passed in (by default HookableModuleLoader is
53 warnpy3k("the ihooks module has been removed in Python 3.0", stacklevel=2)
101 This provides the same functionality as built-in import. It
117 for dir in path:
180 if name in d: return d[name]
251 for info in self.hooks.get_suffixes():
298 raise ImportError, "No __init__ module in package %s" % name
301 if inittype not in (PY_COMPILED, PY_SOURCE):
304 "Bad type (%r) for __init__ module in package %s" % (
328 exec code in m.__dict__
331 if name in d:
364 if name in self.modules:
421 raise ValueError, 'Attempted relative import in non-package'
427 if "__path__" in globals:
432 if '.' not in modname:
434 raise ValueError, ('Attempted relative import in '
442 for x in range(level, 1, -1):
461 if '.' in name:
494 for sub in fromlist:
512 # completely empty module name should only happen in
536 if '.' not in name: