def push(self, x):
if isinstance(x, Frame):<EOL><INDENT>frame = x<EOL><DEDENT>else:<EOL><INDENT>frame = Frame(x)<EOL><DEDENT>self.stack.append(frame)<EOL>log.debug('<STR_LIT>', Repr(frame), Repr(self.stack))<EOL>return frame<EOL>
Push an I{object} onto the stack.
@param x: An object to push.
@type x: L{Frame}
@return: The pushed frame.
@rtype: L{Frame}