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

Method get_filename

Lib/importlib/abc.py:164–170  ·  view source on GitHub ↗

Abstract method which should return the value that __file__ is to be set to. Raises ImportError if the module cannot be found.

(self, fullname)

Source from the content-addressed store, hash-verified

162
163 @abc.abstractmethod
164 def get_filename(self, fullname):
165 """Abstract method which should return the value that __file__ is to be
166 set to.
167
168 Raises ImportError if the module cannot be found.
169 """
170 raise ImportError
171
172 def get_code(self, fullname):
173 """Method to return the code object for fullname.

Callers 2

get_codeMethod · 0.95
entry_okMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected