MCPcopy Index your code
hub / github.com/RustPython/RustPython / truncate

Method truncate

Lib/_pyio.py:1430–1434  ·  view source on GitHub ↗
(self, pos=None)

Source from the content-addressed store, hash-verified

1428 return BufferedReader.tell(self)
1429
1430 def truncate(self, pos=None):
1431 if pos is None:
1432 pos = self.tell()
1433 # Use seek to flush the read buffer.
1434 return BufferedWriter.truncate(self, pos)
1435
1436 def read(self, size=None):
1437 if size is None:

Callers

nothing calls this directly

Calls 2

tellMethod · 0.95
truncateMethod · 0.45

Tested by

no test coverage detected