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

Method substitute

numpy/f2py/symbolic.py:1291–1297  ·  view source on GitHub ↗
(self, symbols_map)

Source from the content-addressed store, hash-verified

1289 self.right = right
1290
1291 def substitute(self, symbols_map):
1292 left, right = self.left, self.right
1293 if isinstance(left, Expr):
1294 left = left.substitute(symbols_map)
1295 if isinstance(right, Expr):
1296 right = right.substitute(symbols_map)
1297 return _Pair(left, right)
1298
1299 def __repr__(self):
1300 return f'{type(self).__name__}({self.left}, {self.right})'

Callers

nothing calls this directly

Calls 2

_PairClass · 0.85
substituteMethod · 0.45

Tested by

no test coverage detected