MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / PushVariable

Method PushVariable

tests/external/gmock-1.7.0/gtest/scripts/pump.py:595–603  ·  view source on GitHub ↗
(self, var, value)

Source from the content-addressed store, hash-verified

593 return clone
594
595 def PushVariable(self, var, value):
596 # If value looks like an int, store it as an int.
597 try:
598 int_value = int(value)
599 if ('%s' % int_value) == value:
600 value = int_value
601 except Exception:
602 pass
603 self.variables[:0] = [(var, value)]
604
605 def PopVariable(self):
606 self.variables[:1] = []

Callers 1

RunAtomicCodeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected