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

Method truncate

Lib/test/test_io/utils.py:196–197  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

194 raise self.UnsupportedOperation("not seekable")
195
196 def truncate(self, *args):
197 raise self.UnsupportedOperation("not seekable")
198
199class CMockUnseekableIO(MockUnseekableIO, io.BytesIO):
200 UnsupportedOperation = io.UnsupportedOperation

Callers 15

closeMethod · 0.45
pushMethod · 0.45
_restoreStdoutMethod · 0.45
test_access_parameterMethod · 0.45
_fs_supports_holesMethod · 0.45
multi_line_testMethod · 0.45

Calls

no outgoing calls