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

Method truncate

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

Source from the content-addressed store, hash-verified

1447 return BufferedReader.tell(self)
1448
1449 def truncate(self, pos=None):
1450 if pos is None:
1451 pos = self.tell()
1452 # Use seek to flush the read buffer.
1453 return BufferedWriter.truncate(self, pos)
1454
1455 def read(self, size=None):
1456 if size is None:

Callers

nothing calls this directly

Calls 2

tellMethod · 0.95
truncateMethod · 0.45

Tested by

no test coverage detected