code: def get_comments(self, limit=0):
          
  
          if limit < 1:
              limit = None
  
          for child in self.get_descendants(self.tag, tags=False):
              if self.is_comment(child):
                  yield child
                  if limit is not None:
                      limit -= 1
                      if limit < 1:
                          break
docs: Get comments.