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