(self, path)
return True
Follows the labels in the given path, starting at the current
        position.
Follows the labels in the given path, starting at the current
        position.
Follows the labels in the given path starting at the current position .
def find_path(self, path):
        """Follows the labels in the given path, starting at the current
        position.
        """

        path = to_labels(path)
        _switch_to = self.switch_to
        _follow = self.follow
        _stopped = self.stopped

        first = True
        for i, label in enumerate(path):
            if not first:
                _follow()
            if not _switch_to(label):
                return False
            if _stopped():
                if i < len(path) - 1:
                    return False
            first = False
        return True
def find_path ( self , path ) : path = to_labels ( path ) _switch_to = self . switch_to _follow = self . follow _stopped = self . stopped first = True for i , label in enumerate ( path ) : if not first : _follow ( ) if not _switch_to ( label ) : return False if _stopped ( ) : if i < len ( path ) - 1 : return False first = False return True