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

Method api_hash

numpy/_core/code_generators/genapi.py:161–170  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

159 return f'{doccomment}{self.return_type} {self.name}({argstr})'
160
161 def api_hash(self):
162 m = hashlib.md5(usedforsecurity=False)
163 m.update(remove_whitespace(self.return_type))
164 m.update('\000')
165 m.update(self.name)
166 m.update('\000')
167 for typename, name in self.args:
168 m.update(remove_whitespace(typename))
169 m.update('\000')
170 return m.hexdigest()[:8]
171
172class ParseError(Exception):
173 def __init__(self, filename, lineno, msg):

Callers 1

mainFunction · 0.80

Calls 2

remove_whitespaceFunction · 0.85
updateMethod · 0.80

Tested by

no test coverage detected