def raw_path(self):
        """Encoded path of URL.

        / for absolute URLs without path part.

        """
        ret = self._val.path
        if not ret and self.is_absolute():
            ret = "/"
        return ret
Encoded path of URL.

        / for absolute URLs without path part.

        
lib/yarl/_url.py