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

Function _get_depend_dict

numpy/f2py/crackfortran.py:2386–2405  ·  view source on GitHub ↗
(name, vars, deps)

Source from the content-addressed store, hash-verified

2384
2385
2386def _get_depend_dict(name, vars, deps):
2387 if name in vars:
2388 words = vars[name].get('depend', [])
2389
2390 if '=' in vars[name] and not isstring(vars[name]):
2391 for word in word_pattern.findall(vars[name]['=']):
2392 # The word_pattern may return values that are not
2393 # only variables, they can be string content for instance
2394 if word not in words and word in vars and word != name:
2395 words.append(word)
2396 for word in words[:]:
2397 for w in deps.get(word, []) \
2398 or _get_depend_dict(word, vars, deps):
2399 if w not in words:
2400 words.append(w)
2401 else:
2402 outmess('_get_depend_dict: no dependence info for %s\n' % (repr(name)))
2403 words = []
2404 deps[name] = words
2405 return words
2406
2407
2408def _calc_depend_dict(vars):

Callers 1

_calc_depend_dictFunction · 0.85

Calls 3

isstringFunction · 0.85
outmessFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected