(self, var, value)
| 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] = [] |