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

Method truncate

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

Source from the content-addressed store, hash-verified

2496 decoder.setstate(saved_state)
2497
2498 def truncate(self, pos=None):
2499 self.flush()
2500 if pos is None:
2501 pos = self.tell()
2502 return self.buffer.truncate(pos)
2503
2504 def detach(self):
2505 if self.buffer is None:

Callers

nothing calls this directly

Calls 3

flushMethod · 0.95
tellMethod · 0.95
truncateMethod · 0.45

Tested by

no test coverage detected