Push value to the stack (thread dependent)
(value)
| 2738 | return longestCommonPrefix(*[_ for _ in sequence if _.startswith(initial)]) |
| 2739 | |
| 2740 | def pushValue(value): |
| 2741 | """ |
| 2742 | Push value to the stack (thread dependent) |
| 2743 | """ |
| 2744 | |
| 2745 | exception = None |
| 2746 | success = False |
| 2747 | |
| 2748 | for i in xrange(PUSH_VALUE_EXCEPTION_RETRY_COUNT): |
| 2749 | try: |
| 2750 | getCurrentThreadData().valueStack.append(copy.deepcopy(value)) |
| 2751 | success = True |
| 2752 | break |
| 2753 | except Exception as ex: |
| 2754 | exception = ex |
| 2755 | |
| 2756 | if not success: |
| 2757 | getCurrentThreadData().valueStack.append(None) |
| 2758 | |
| 2759 | if exception: |
| 2760 | raise exception |
| 2761 | |
| 2762 | def popValue(): |
| 2763 | """ |
searching dependent graphs…