MCPcopy Index your code
hub / github.com/ipython/ipython / get_module

Method get_module

tests/test_zzz_autoreload.py:122–127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 self.shell = None
121
122 def get_module(self):
123 module_name = "tmpmod_" + "".join(random.sample(self.filename_chars, 20))
124 if module_name in sys.modules:
125 del sys.modules[module_name]
126 file_name = os.path.join(self.test_dir, module_name + ".py")
127 return module_name, file_name
128
129 def write_file(self, filename, content):
130 """

Callers 1

new_moduleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected