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

Method seekable

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

Return a bool indicating whether object supports random access. If False, seek(), tell() and truncate() will raise OSError. This method may need to do a test seek().

(self)

Source from the content-addressed store, hash-verified

448 ### Inquiries ###
449
450 def seekable(self):
451 """Return a bool indicating whether object supports random access.
452
453 If False, seek(), tell() and truncate() will raise OSError.
454 This method may need to do a test seek().
455 """
456 return False
457
458 def _checkSeekable(self, msg=None):
459 """Internal: raise UnsupportedOperation if file is not seekable

Callers 3

_checkSeekableMethod · 0.95
seekableMethod · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected