'Saves the current input paramaters to a stack.  See :meth:`pop_input`.'

def push_input(self):

    d = {}
    for i in ('interactive', 'stdin', 'input_line_number'):
        d[i] = getattr(self, i)
    self._input_stack.append(d)
