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

Method api_hash

numpy/core/code_generators/genapi.py:155–164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153 return '%s%s %s(%s)' % (doccomment, self.return_type, self.name, argstr)
154
155 def api_hash(self):
156 m = hashlib.md5()
157 m.update(remove_whitespace(self.return_type))
158 m.update('\000')
159 m.update(self.name)
160 m.update('\000')
161 for typename, name in self.args:
162 m.update(remove_whitespace(typename))
163 m.update('\000')
164 return m.hexdigest()[:8]
165
166class ParseError(Exception):
167 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