(self, k)
Returns the CallStack at index k, indexing from the top of the stack.
Returns the CallStack at index k, indexing from the top of the stack.
Returns the CallStack at index k indexing from the top of the stack .
def __getitem__(self, k):
        """
        Returns the CallStack at index k, indexing from the top of the stack.
        """
        orig_k = k
        for i in self:
            if k == 0:
                return i
            k -= 1
        raise IndexError(orig_k)
def __getitem__ ( self , k ) : orig_k = k for i in self : if k == 0 : return i k -= 1 raise IndexError ( orig_k )