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

Function repl

numpy/f2py/symbolic.py:1178–1186  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

1176 d = {}
1177
1178 def repl(m):
1179 kind, value = m.groups()[:2]
1180 if kind:
1181 # remove trailing underscore
1182 kind = kind[:-1]
1183 p = {"'": "SINGLE", '"': "DOUBLE"}[value[0]]
1184 k = f'{kind}@__f2py_QUOTES_{p}_{COUNTER.__next__()}@'
1185 d[k] = value
1186 return k
1187
1188 new_s = re.sub(r'({kind}_|)({single_quoted}|{double_quoted})'.format(
1189 kind=r'\w[\w\d_]*',

Callers

nothing calls this directly

Calls 1

__next__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…