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

Method evaluate

Singular/dyn_modules/openmath/objects.py:242–248  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

240 #print type(self.value)
241 return self.attr+[self.value]
242 def evaluate(self, context):
243 value = copy(self.value)
244 value.attributes = copy(value.attributes)
245 for attribute in self.attr:
246 attribute_evaluated=context.evaluate(attribute)
247 value.attributes[attribute_evaluated.key] = attribute_evaluated.value
248 return value
249 XMLtag = "OMATTR"
250if __name__ == '__main__':
251 print OMV("x")

Callers

nothing calls this directly

Calls 2

copyFunction · 0.85
evaluateMethod · 0.45

Tested by

no test coverage detected