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

Function parse_values

numpy/_build_utils/conv_template.py:145–154  ·  view source on GitHub ↗
(astr)

Source from the content-addressed store, hash-verified

143
144
145def parse_values(astr):
146 # replaces all occurrences of '(a,b,c)*4' in astr
147 # with 'a,b,c,a,b,c,a,b,c,a,b,c'. Empty braces generate
148 # empty values, i.e., ()*4 yields ',,,'. The result is
149 # split at ',' and a list of values returned.
150 astr = parenrep.sub(paren_repl, astr)
151 # replaces occurrences of xxx*3 with xxx, xxx, xxx
152 astr = ','.join([plainrep.sub(paren_repl, x.strip())
153 for x in astr.split(',')])
154 return astr.split(',')
155
156
157stripast = re.compile(r"\n\s*\*?")

Callers 1

parse_loop_headerFunction · 0.85

Calls 3

joinMethod · 0.80
stripMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…