MCPcopy Create free account
hub / github.com/numpy/numpy / _interpolate

Method _interpolate

numpy/distutils/npy_pkg_config.py:180–183  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

178 # Brute force: we keep interpolating until there is no '${var}' anymore
179 # or until interpolated string is equal to input string
180 def _interpolate(value):
181 for k in self._re.keys():
182 value = self._re[k].sub(self._re_sub[k], value)
183 return value
184 while _VAR.search(value):
185 nvalue = _interpolate(value)
186 if nvalue == value:

Callers

nothing calls this directly

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected