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

Function main

numpy/core/code_generators/genapi.py:538–548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

536 return dict(d)
537
538def main():
539 tagname = sys.argv[1]
540 order_file = sys.argv[2]
541 functions = get_api_functions(tagname, order_file)
542 m = hashlib.md5(tagname)
543 for func in functions:
544 print(func)
545 ah = func.api_hash()
546 m.update(ah)
547 print(hex(int(ah, 16)))
548 print(hex(int(m.hexdigest()[:8], 16)))
549
550if __name__ == '__main__':
551 main()

Callers 1

genapi.pyFile · 0.70

Calls 4

get_api_functionsFunction · 0.85
printFunction · 0.85
api_hashMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected