MCPcopy Index your code
hub / github.com/numpy/numpy / get_temp_module_name

Function get_temp_module_name

numpy/f2py/tests/util.py:160–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159
160def get_temp_module_name():
161 # Assume single-threaded, and the module dir usable only by this thread
162 global _module_num
163 get_module_dir()
164 name = f"_test_ext_module_{_module_num}"
165 _module_num += 1
166 if name in sys.modules:
167 # this should not be possible, but check anyway
168 raise RuntimeError("Temporary module name already in use.")
169 return name
170
171
172def _memoize(func):

Callers 2

build_moduleFunction · 0.85
build_mesonFunction · 0.85

Calls 1

get_module_dirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…