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

Method evaluate

Singular/dyn_modules/openmath/objects.py:120–129  ·  view source on GitHub ↗

evaluate the OMbinding in context

(self, context)

Source from the content-addressed store, hash-verified

118 self.variables = variables
119 self.bounded = False
120 def evaluate(self, context):
121 "evaluate the OMbinding in context"
122 assert islambda(self.binder)
123 if not self.bounded:
124 mycopy = copy(self)
125 mycopy.scope = context.scopeFromCurrentScope()
126 mycopy.bounded = True
127 return mycopy
128 else:
129 return self
130 def bind(self, args):
131 "bind arguments to values"
132 #print args, self.variables

Callers

nothing calls this directly

Calls 3

islambdaFunction · 0.85
copyFunction · 0.85
scopeFromCurrentScopeMethod · 0.80

Tested by

no test coverage detected