code: def iscomet(self):
          
  
          # treat this object as comet if there is a prefix/number
          if self.comet is not None:
              return self.comet
          elif self.asteroid is not None:
              return not self.asteroid
          else:
              return (self.parse_comet()[0] is not None or
                      self.parse_comet()[1] is not None)
docs: `True` if `targetname` appears to be a comet.