code: def issamedoc(self):
          
          return (self.scheme is None and self.authority is None and
                  not self.path and self.query is None)
docs: Return :const:`True` if this is a same-document reference.