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

Function get_api_functions

numpy/core/code_generators/genapi.py:502–509  ·  view source on GitHub ↗

Parse source files to get functions tagged by the given tag.

(tagname, api_dict)

Source from the content-addressed store, hash-verified

500 raise ValueError(msg)
501
502def get_api_functions(tagname, api_dict):
503 """Parse source files to get functions tagged by the given tag."""
504 functions = []
505 for f in API_FILES:
506 functions.extend(find_functions(f, tagname))
507 dfunctions = [(api_dict[func.name][0], func) for func in functions]
508 dfunctions.sort()
509 return [a[1] for a in dfunctions]
510
511def fullapi_hash(api_dicts):
512 """Given a list of api dicts defining the numpy C API, compute a checksum

Callers 1

mainFunction · 0.85

Calls 2

find_functionsFunction · 0.85
sortMethod · 0.80

Tested by

no test coverage detected