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

Method get_module

IPython/extensions/tests/test_deduperreload.py:754–759  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

752 self.shell = None
753
754 def get_module(self):
755 module_name = "tmpmod_" + "".join(random.sample(self.filename_chars, 20))
756 if module_name in sys.modules:
757 del sys.modules[module_name]
758 file_name = os.path.join(self.test_dir, module_name + ".py")
759 return module_name, file_name
760
761 def write_file(self, filename, content):
762 """

Callers 2

new_moduleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected