code: def push(self, obj):
          
          rv = getattr(self._local, "stack", None)
          if rv is None:
              self._local.stack = rv = []
          rv.append(obj)
          return rv
docs: Pushes a new item to the stack