code: def get_comments(self, i):
          
  
          index = i.index
          value = ['(']
          escaped = False
          try:
              c = next(i)
              if c != '?':
                  i.rewind(1)
                  return None
              value.append(c)
              c = next(i)
              if c != '#':
                  i.rewind(2)
                  return None
              value.append(c)
              c = next(i)
              while c != ')' or escaped is True:
                  if escaped:
                      escaped = False
                  elif c == '\\':
                      escaped = True
                  value.append(c)
                  c = next(i)
              value.append(c)
          except StopIteration:
              raise SyntaxError("Unmatched '(' at %d!" % (index - 1))
  
          return ''.join(value)
docs: Get comments.