MCPcopy Index your code
hub / github.com/python/cpython / Loader

Class Loader

Lib/importlib/_abc.py:6–21  ·  view source on GitHub ↗

Abstract base class for import loaders.

Source from the content-addressed store, hash-verified

4
5
6class Loader(metaclass=abc.ABCMeta):
7
8 """Abstract base class for import loaders."""
9
10 def create_module(self, spec):
11 """Return a module to initialize and into which to load.
12
13 This method should raise ImportError if anything prevents it
14 from creating a new module. It may return None to indicate
15 that the spec should create the new module.
16 """
17 # By default, defer to default semantics for the new module.
18 return None
19
20 # We don't define exec_module() here since that would break
21 # hasattr checks we do to support backward compatibility.

Callers 1

createTestsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…