def push(self, o):
self._elements = self._elements[:self._pos+<NUM_LIT:1>]<EOL>self._elements.append(o)<EOL>self._pos = len(self._elements)-<NUM_LIT:1><EOL>return self()<EOL>
push object onto stack at current position - all elements
occurring later than the current position are discarded