parameters: (self)
return_statement: return self._seekable
docstring: True if file supports random-access.
docstring_summary: True if file supports random-access.
docstring_tokens: True if file supports random - access .
function: 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
function_tokens: 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