MCPcopy Index your code
hub / github.com/python/cpython / seekable

Method seekable

Lib/_pyio.py:419–425  ·  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

417 ### Inquiries ###
418
419 def seekable(self):
420 """Return a bool indicating whether object supports random access.
421
422 If False, seek(), tell() and truncate() will raise OSError.
423 This method may need to do a test seek().
424 """
425 return False
426
427 def _checkSeekable(self, msg=None):
428 """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