MCPcopy Create free account
hub / github.com/Singular/Singular / bind

Method bind

Singular/dyn_modules/openmath/objects.py:130–135  ·  view source on GitHub ↗

bind arguments to values

(self, args)

Source from the content-addressed store, hash-verified

128 else:
129 return self
130 def bind(self, args):
131 "bind arguments to values"
132 #print args, self.variables
133 assert len(args) == len(self.variables)
134 varBindings = dict(izip([i.name for i in self.variables], args))
135 self.scope.push(varBindings)
136 def unbind(self):
137 "unbind the arguments"
138 self.scope.pop()

Callers 3

__call__Method · 0.95
optimizeFunction · 0.80
optimizeFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected