Return a copy of self referencing the same objects but in a new list. This method is implemented to support thread-local stacks. Returns: TraceableStack with a new list that holds existing objects.
(self)
| 129 | return len(self._stack) |
| 130 | |
| 131 | def copy(self): |
| 132 | """Return a copy of self referencing the same objects but in a new list. |
| 133 | |
| 134 | This method is implemented to support thread-local stacks. |
| 135 | |
| 136 | Returns: |
| 137 | TraceableStack with a new list that holds existing objects. |
| 138 | """ |
| 139 | return TraceableStack(self._stack) |