MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / seekable

Method seekable

tools/python-3.11.9-amd64/Lib/_pyio.py:1776–1786  ·  view source on GitHub ↗

True if file supports random-access.

(self)

Source from the content-addressed store, hash-verified

1774 super().close()
1775
1776 def seekable(self):
1777 """True if file supports random-access."""
1778 self._checkClosed()
1779 if self._seekable is None:
1780 try:
1781 self.tell()
1782 except OSError:
1783 self._seekable = False
1784 else:
1785 self._seekable = True
1786 return self._seekable
1787
1788 def readable(self):
1789 """True if file was opened in a read mode."""

Callers

nothing calls this directly

Calls 2

tellMethod · 0.95
_checkClosedMethod · 0.45

Tested by

no test coverage detected