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

Function insert_quotes

numpy/f2py/symbolic.py:1201–1209  ·  view source on GitHub ↗

Inverse of eliminate_quotes.

(s, d)

Source from the content-addressed store, hash-verified

1199
1200
1201def insert_quotes(s, d):
1202 """Inverse of eliminate_quotes.
1203 """
1204 for k, v in d.items():
1205 kind = k[:k.find('@')]
1206 if kind:
1207 kind += '_'
1208 s = s.replace(k, kind + v)
1209 return s
1210
1211
1212def replace_parenthesis(s):

Callers 2

workerMethod · 0.90
finalize_stringMethod · 0.85

Calls 2

findMethod · 0.80
replaceMethod · 0.80

Tested by 1

workerMethod · 0.72