(self)
return self._seekable
True if file supports random-access.
True if file supports random-access.
True if file supports random - access .
def seekable(self):
        """True if file supports random-access."""
        self._checkClosed()
        if self._seekable is None:
            try:
                self.tell()
            except OSError:
                self._seekable = False
            else:
                self._seekable = True
        return self._seekable
def seekable ( self ) : self . _checkClosed ( ) if self . _seekable is None : try : self . tell ( ) except OSError : self . _seekable = False else : self . _seekable = True return self . _seekable