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

Method __str__

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

Source from the content-addressed store, hash-verified

145 return typename + ' ' + name
146
147 def __str__(self):
148 argstr = ', '.join([self._format_arg(*a) for a in self.args])
149 if self.doc:
150 doccomment = '/* %s */\n' % self.doc
151 else:
152 doccomment = ''
153 return '%s%s %s(%s)' % (doccomment, self.return_type, self.name, argstr)
154
155 def api_hash(self):
156 m = hashlib.md5()

Callers

nothing calls this directly

Calls 2

_format_argMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected