code: def parents(self):
          
          entries = []
          command = self
          while command.parent is not None:
              command = command.parent
              entries.append(command)
  
          return entries
docs: Retrieves the parents of this command.
  
          If the command has no parents then it returns an empty :class:`list`.
  
          For example in commands ``?a b c test``, the parents are ``[c, b, a]``.
  
          .. versionadded:: 1.1.0