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

Function finish_arg

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

Source from the content-addressed store, hash-verified

188 current_argument = []
189 i = 0
190 def finish_arg():
191 if current_argument:
192 argstr = ''.join(current_argument).strip()
193 m = re.match(r'(.*(\s+|\*))(\w+)$', argstr)
194 if m:
195 typename = m.group(1).strip()
196 name = m.group(3)
197 else:
198 typename = argstr
199 name = ''
200 arguments.append((typename, name))
201 del current_argument[:]
202 while i < len(argstr):
203 c = argstr[i]
204 if c == ',':

Callers 1

split_argumentsFunction · 0.85

Calls 2

stripMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected