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

Function conv

numpy/distutils/from_template.py:105–113  ·  view source on GitHub ↗
(astr)

Source from the content-addressed store, hash-verified

103
104item_re = re.compile(r"\A\\(?P<index>\d+)\Z")
105def conv(astr):
106 b = astr.split(',')
107 l = [x.strip() for x in b]
108 for i in range(len(l)):
109 m = item_re.match(l[i])
110 if m:
111 j = int(m.group('index'))
112 l[i] = l[j]
113 return ','.join(l)
114
115def unique_key(adict):
116 """ Obtain a unique key given a dictionary."""

Callers 2

find_repl_patternsFunction · 0.70
listreplFunction · 0.70

Calls 3

stripMethod · 0.80
splitMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected